Motivation [002N]

Consider the following two problems:

  1. 30 people each buy a ticket to see the heffalump. The owner pays $12 for food and ends up with $33 in profit. How much does one ticket cost?
  2. In what circumstances does the following loop stop?
    while (tickets < 30 or (!heffalumps.isEmpty() and not(count > 5))):
      ...

How would you solve these? Different students give different answers, but if you are like many, you would solve the first one by writing down an algebraic equation and solving it, and the second one by talking about it and thinking hard. The first problem definitely seems easier.

It turns out that people used to solve algebra problems like the first using natural language and thinking really hard. Formal notation is a superpower! Our goal is to allow you to solve the second problem using a formal language too.

As another motivation for our study: how do we rigorously prove a mathematical statement, i.e. how can we completely convince ourselves and others of its truth? How do we know what details we need to include, and what counts as a correct argument? As we will see, the language of propositional logic can help with this, too!