11. Propositions
Sentences in English can express emotion, state facts, ask questions, and so on. A sentence in a computer language may state a fact or give a command. In this section we are concerned with sentences that are either true or false.
11.1 Specification: proposition
A proposition is a statement which is either true or false.
11.1.1 Example Let $P$ be the proposition “$4\geq 2$”, and $Q$ the proposition “$25\leq -2$”. Both statements are meaningful; $P$ is true and $Q$ is false.
11.1.2 Example In Example 3.1.2, page 4, we showed that 0 is not positive by using the definition of positive to see that 0 is positive if the proposition $0>0$ is true. Since it is not true, 0 is not positive.
11.1.3 Example The statement $x >4$ is not a proposition, since we don’t know what $x$ is. It is an example of a predicate.
11.1.4 Usage In many textbooks on logic a proposition is called a sentence.
11.1.5 Remark Textbooks on logic define propositions (and predicates, the subject of the next chapter) rather than merely specifying them as we have done. The definition is usually by an recursive process and can be fairly complicated. In order to prove theorems about logic, it is necessary to do this. This text explains some of the basic ideas about logic but does not prove theorems in logic.
11.2 Propositions in Mathematica
A statement such as 2 < 3 is a proposition in Mathematica; if you type it in, it will return True. The symbol for equals is == rather than “=”, so for example 2 == 3 returns False.
Pages 15–16 of the book (PDF).