Memra

Propositional calculus: symbols, connectives, well-formed formulas

◈ 4 cards

Read and write well-formed formulas over ¬ ∧ ∨ → ≡, and name the parts of an implication — antecedent and consequent.

A formal language for true/false claims

The propositional calculus is the simplest logic in the course: a formal language for stating and combining claims that are wholly true or wholly false. It has three kinds of symbol:

  • Propositional symbolsP, Q, R, S, … each names one atomic claim, e.g. P = "it rained on Tuesday".
  • Truth symbols — the reserved constants true and false.
  • Logical connectives¬ (not), (and), (or), (implies), (equivalent).

The defining limitation, the thing that later forces us into predicate calculus, is that a propositional symbol is indivisible: P is an opaque token. There is no way to look inside it and talk about which day it rained or to say something general about all rainy days. One symbol, one fixed claim.

Building well-formed formulas

A well-formed formula (WFF), also called a legal sentence, is any expression you can build by these rules:

  1. Every propositional symbol and every truth symbol is a WFF.
  2. If is a WFF, so is its negation .
  3. If and are WFFs, so are , , , and .

That is the whole grammar, and it is inductive — every legal sentence is a symbol, or a connective applied to smaller legal sentences. So ((P \wedge Q) \to \neg R) is a WFF, while P \wedge \to Q is not (the \to has no left operand).

Well-formedness is purely syntactic: it says the expression was built correctly, not that it is true. P \wedge \neg P is a perfectly legal WFF even though it can never be true. Keep that separation — legal shape now, truth value in the next lesson.

Worked example: parts of an implication

In the implication :

  • is the antecedent (also called the premise).
  • is the consequent (also called the conclusion).

Take as raining → wet_ground. The antecedent is raining; the consequent is wet_ground. The crucial, exam-relevant fact about is its truth definition: is false in exactly one case — when is true and is false. In every other row it is true, including both rows where the antecedent is false (a false premise makes the whole implication vacuously true). We prove that with a truth table next lesson.

In the parts are the two conjuncts and ; in they are the two disjuncts. Those names matter the moment we apply inference rules: And-Elimination lets you pull either conjunct out of a true conjunction.

antecedentconsequentthe whole WFFPQ¬R
The grammar is inductive, so every WFF has exactly one tree like this: leaves are propositional symbols, every internal node is a connective applied to smaller WFFs. Read the two branches under → and you have the vocabulary — <strong>antecedent</strong> on the left, <strong>consequent</strong> on the right. <code>P ∧ → Q</code> has no such tree, which is precisely why it is not well formed.
NORMAL ~/memra/learn/comp-456/propositional-syntax-wffs utf-8 LF