Back to the on-screen lesson ·

Formulas and connectives

Atoms, the five connectives, the formation rules, and finding the main connective of a formula.

Paper packet. Every task here also exists on screen, where it is checked automatically; answers written on paper are not assessed by Nydus. When you are back at a device, enter your answers there.

1. What you will learn

By the end of this lesson you will be able to say which strings the formation rules build, find the main connective of a formula and the subformulas it joins, read a formula written with precedence rather than brackets, and give the column a connective has over the rows of a truth table.

2. What you already have

You have written mathematical statements with and, or, not and if ... then, and you have used a truth table to settle whether an implication holds. This lesson makes the language itself the object of study: which strings count as statements, and how one is put together.

3. The words this unit uses

An atom is a statement letter, written $P$, $Q$, $R$; it stands for a whole statement and has no parts. A formula is a string the formation rules build. A subformula is a formula that occurs inside another. The main connective is the one applied last. Scope is how much of the formula a connective reaches. A valuation assigns a truth value to each atom.

4. Formulas and connectives

The language has atoms $P, Q, R, \ldots$ and five connectives: $\neg$, $\wedge$, $\vee$, $\to$, $\leftrightarrow$. The formation rules say what a formula is, and they are the whole definition: every atom is a formula; if $\phi$ is a formula then so is $\neg \phi$; if $\phi$ and $\psi$ are formulas then so is $(\phi \wedge \psi)$, and likewise for $\vee$, $\to$ and $\leftrightarrow$; and nothing else is a formula. Because every formula is built by those rules, every formula has exactly one main connective, the one applied last, and the pieces it joins are its immediate subformulas. Outer brackets are usually dropped and precedence used instead: $\neg$ binds tightest, then $\wedge$ and $\vee$, then $\to$ and $\leftrightarrow$. A valuation gives each atom a value, and the truth tables of the connectives then fix the value of every formula built from them: $\phi \to \psi$ is false on one row only, the row where $\phi$ is true and $\psi$ false.

Another way: steps

  1. Strip any bracket that encloses the whole string.
  2. Find the connective with the widest scope; that is the main connective.
  3. Split the formula into the pieces it joins, and repeat on each piece.
  4. Stop at atoms. The tree you have drawn is the order a truth table fills its columns.

Another way: example

$\neg P \to Q \wedge R$ has main connective $\to$: negation reaches only $P$ and conjunction binds tighter than the arrow, so the two pieces are $\neg P$ and $Q \wedge R$.

5. Where this goes wrong

Two mistakes are worth naming. The first is reading precedence as word order: in $P \vee Q \to R$ the arrow is the main connective, even though it is written last, because it has the widest scope. The second is treating $\neg$ as reaching to the end of the formula; $\neg P \wedge Q$ is a conjunction whose left half is negated, not the negation of a conjunction, and the two differ on the row where $P$ and $Q$ are both false.

6. Finding the main connective

  1. $(P \wedge Q) \to \neg R$: no bracket encloses the whole string.

    Nothing to strip.

  2. The conjunction is inside a bracket and the negation reaches only $R$, so the arrow is applied last.

    Widest scope wins.

  3. Main connective $\to$; immediate subformulas $P \wedge Q$ and $\neg R$.

    Split and repeat.

7. A string that is not a formula

  1. $P \wedge \vee Q$: ask which rule was applied last.

    Work backwards from the rules.

  2. Whichever binary connective you pick, one of its two sides is not a formula, so no rule produces the string.

    No last rule, no formula.

8. Your turn: the main connective of $\neg (P \to Q) \wedge R$

  1. The negation is followed immediately by a bracket, so it reaches exactly $P \to Q$ and no further.

  2. Your turn: work this step out. Its working is at the end of the packet.

    That leaves $\neg (P \to Q)$ and $R$ joined by $\wedge$, so the main connective is the conjunction.

9. Guided practice

Match each connective to the demand it makes on a row of the truth table.

Swaps the value of the one formula it is applied toBoth halves holdAt least one half holds, and both is allowedThe first half never holds while the second one failsThe two halves agree, whichever way they agree
$\neg P$
$P \wedge Q$
$P \vee Q$
$P \to Q$
$P \leftrightarrow Q$

10. Guided practice

Complete the column for P | Q — read 'or'. The rows are in the usual order: both true, then $P$ true and $Q$ false, then $Q$ only, then neither.

PQP | Q
   
   
   
   
   
   
   
   

11. Guided practice

Which connective is the main connective of $(P \to Q) \leftrightarrow \neg R$ — the one applied last?

12. Practice

Mark every string below that the formation rules build.

This task has no paper form; do it on a device.

13. Practice

A formula is built from $3$ different atoms. Complete the sentence.

Its truth table has r rows.

14. Somewhere new

A formula is written with $7$ occurrences of atoms and no negation signs at all. How many occurrences of binary connectives does it have?

Answer:

15. Lesson test

Lesson test: one question per skill, one attempt each, no hints. Your answers are checked when you submit.

16. Test question

Here are four stages in the construction of $\neg (P \wedge (Q \to R))$. Put them in the order the formation rules produce them.

Number the steps in order (write the number in the box):

17. What you can do now

You can decide whether a string is a formula, find its main connective, and write the column of each connective. Say in your own words why every formula has exactly one main connective.

Working for the steps left to you

8. Your turn: the main connective of $\neg (P \to Q) \wedge R$, step 2