Connectives & Well-Formed Formulas
Atomic sentences, the five truth-functional connectives, and the rules for building formulas.
Formal logic starts by stripping arguments down to their form. We represent simple declarative sentences with capital letters — , , — called atomic sentences, and we glue them together with a small set of connectives. Each connective is truth-functional: the truth value of the whole is fixed entirely by the truth values of its parts.
Type a formula below (or use the symbol buttons) and read its truth value under every assignment.
Type symbols or ASCII: ~ ! → ¬, & → ∧, | → ∨, -> → →, <-> → ↔.
| P | Q | ¬(P ∧ Q) |
|---|---|---|
| T | T | F |
| T | F | T |
| F | T | T |
| F | F | T |
The five connectives
| Connective | Here | Teller’s primer | Read as | True exactly when |
|---|---|---|---|---|
| Negation | not | is false | ||
| Conjunction | and | both are true | ||
| Disjunction | or | at least one is true | ||
| Conditional | if then | is false or is true | ||
| Biconditional | if and only if | both sides match |
The disjunction is inclusive ( is true when both are true). The conditional is material: only fails in the single case where is true and is false — so a false antecedent makes the whole conditional true (“vacuously true”).
Well-formed formulas
Not every string of symbols is legal. A well-formed formula (WFF) is built by these rules:
- every atomic sentence (, , …) is a WFF;
- if is a WFF, so is ;
- if and are WFFs, so are , , , and .
Parentheses prevent ambiguity. To cut down on clutter we drop outer parentheses and use a precedence order — binds tightest, then , then , then , then — so means .
The main connective
Every WFF has exactly one main connective — the last one applied as you build it up. It determines what kind of sentence you have: is a negation, while is a conjunction. Misreading the main connective is the most common beginner mistake, and the visualizer above makes the difference concrete — compare the two formulas and watch their columns differ.
Takeaways
- Atomic sentences plus five truth-functional connectives () generate every formula of sentence logic.
- A connective is truth-functional: the whole’s value depends only on the parts’ values.
- The conditional is false only when is true and is false.
- Precedence and the main connective decide how a formula is read.
References
- Paul Teller, A Modern Formal Logic Primer, Prentice Hall (1989) — free at tellerprimer.ucdavis.edu. This track follows the primer’s curriculum; the explanations, examples, and exercises here are original.