Subsection 6.2.2 Mathematical Statements
Mathematical statements are formal claims. The logical language that we’ve developed is exactly what we need to encode them in a way that is unambiguous and that enables us to reason with what we know.
Let’s look at how we can do two important things:
Define concepts. We do this with the logical notion of equivalence.
Assert properties and relationships of the objects that we’ve defined. We do this with our full arsenal of logical tools.
We derive a good deal of power from the fact that this approach lets us easily build new concepts on top of simpler ones. Let’s see how this works.
Recall that we’ve already defined two useful predicates on the integers:
[1] Div(x, y) ≡ ∃z (x = y⋅z) Div(x, y) is true iff x is evenly divisible by y.
[2] Even(x) ≡ Div(x, 2) Even(x) is true iff x is divisible by 2.
Now we can exploit them to define new useful concepts:
Definition of Prime Numbers
A prime number is an integer greater than 1 whose only divisors are itself and 1. We’ve already seen that we can write this definition formally. In fact, we gave two equivalent definitions (read them carefully to see what they are saying):
[3] ∀x (Prime(x) ≡ ( (x > 1) ∧ ∀y (Div(x, y) → ((x = y) ∨ (y = 1)))))
[4] ∀x (Prime(x) ≡ ( (x > 1) ∧ ¬∃y (Div(x, y) ∧ ¬(x = y) ∧ ¬(y = 1))))
Definition of Composite Numbers
A composite number is an integer greater than 1 that isn’t prime. Here’s a definition stated in terms of our basic predicate Div:
[5] ∀x (Composite(x) ≡ ( (x > 1) ∧ ∃y (Div(x, y) ∧ ¬(x = y) ∧ ¬(y = 1) ) ) )
Exercises Exercises
1.
We want to encode the fact that there is no largest integer. Another way to say this is that every integer has another one that is bigger than it is.
Which (one or more) of the following statements correctly encode(s) our claim:
I. ¬∃i (∀j (i ≥ j))
II. ∀i (∃j (j > i))
III. ∃i (∀j (j > i))
Just I.
Just II.
Just III.
I and II.
II and III.
2.
2. We want to encode the fact that, for any nonzero integer, there’s a different integer with the same absolute value. So, for example, consider 2. Another integer, namely -2, has the same absolute value as 2.
Let |x| stand for the absolute value of x. Which (one or more) of the following statements correctly encode(s) our claim:
I. ∀x (∀y ((x = y) → ((¬(x = 0) ∧ (|x| = |y|))))
II. ∃y ((¬(y = 0)) → ∃x (|x| = |y|))
III. ∀x ((¬(x = 0)) → ∃y (¬(x = y) ∧ (|x| = |y|)))
Just I.
Just II.
Just III.
I and II.
II and III.
y ((y = 0) x (|x| = |y|))This claim is true (since there clearly exists a y that is equal to 0), but it’s different from the one we are trying to make.