Throughout these exercises,
Consider the binary relation
How would you define
Generalize the
previous problem
to describe how
you can represent any
Are each of the following formulas valid, i.e., true for all interpretations? (Remember that the relation names are just names in the formula; don't assume the name has to have any bearing on their interpretation.)
[Practice problem—solution provided.]
Suppose we wanted to represent the count of neighboring pirates
with a binary relation, such that when location
Determine whether the relation
For each of the following, if the statement is true, explain why, and if the statement is false, give a counter-example relation.
Let
Let
Determine the truth value of each of these statements if the domain is all real numbers. Where appropriate, give a witness.
Let
You come home one evening
to find your roommate exuberant because
they have managed to prove that there is an even prime number
bigger than two.
More precisely, they have a correct proof of
For the sentence
Translate the following conversational English statements
into first-order logic, using the suggested predicates,
or inventing appropriately-named ones if none provided.
(You may also freely use
Write a formula for each of the following.
Use the two binary relations
Two interpretations are considered fundamentally the same (or isomorphic) if you can map one interpretation to the other simply by a consistent renaming of domain elements.
[Practice problem—solution provided.]
Find two fundamentally different interpretations that satisfy the statement “There exists one person who is liked by two people”.
One interpretation that satisfies this is
a domain of three people Alice, Bob, Charlie,
with the
Here's another interpretation that is the same except for renaming,
and thus not fundamentally different:
a domain of three people Alyssa, Bobby, Chuck,
with the
Here's an interpretation that is
fundamentally different:
a domain of three people Alice, Bob, Charlie,
with the
English is fuzzy enough that it is unclear whether “one” and “two” are meant as exact counts. The above two examples each assumed they are.
For the four “Musketeer” formulas from
a previous exercise,
find three fundamentally different interpretations
of
Depict each of these interpretations as a graph — draw three circles (nodes) representing the three people, and an arrow (edge) from a person to each person they like. (You can glance at Rosen Section 9.1, Figure 8 for an example.)
Translate the following statements into first-order logic.
The domain is the set of natural numbers, and the binary relation
You may assume that
Some binary relations can be viewed as the encoding of a unary
function, where the first element of the ordered pair represents
the function's value.
For instance, in a previous exercise
we encoded the binary function addition
as a ternary relation
Alternation of quantifiers: Determine the truth of each of the following sentences in each of the indicated domains.
| \\ | D1 | D2 | D3 | D4 |
|---|---|---|---|---|
| S1 | ||||
| S2 | ||||
| S3 | ||||
| S4 |
Raspberry sherbet with hot fudge (“rshf”)
is the tastiest dessert.
Use
What is the intended domain for your formula? What is a relation which makes this statement true? One which makes it false?
Even allowing for ellision, the list of WaterWorld domain axioms is incomplete, in a sense. The game reports how many pirates exist in total, but that global information is not reflected in the propositions or axioms. We had the same problem with the propositional logic domain axioms
The puzzle game of Sudoku has become popular. It is played on a 9×9 grid, where each square holds a number between 1 and 9. The positions of the numbers must obey constraints. Each row and each column has each of the 9 numbers. Each of the 9 non-overlapping 3×3 square sub-grids has each of the 9 numbers.
Like WaterWorld, throughout the game, some of the values have not been discovered, although they are determined. You start with some numbers revealed, enough to guarantee that the rest of the board is uniquely determined by the constraints. Thus, like in WaterWorld, when deducing the value of another location, what has been revealed so far would search as axioms in a proof.
Fortunately, there are the same number of rows, columns, subgrids,
and values.
So, our domain is
To model the game, we will use the following relations:
Provide inference rules for Sudoku. These will modeling the row, column, and subgrid constraints. In addition, you should include constraints on our above relations, such as that each location holds one value.
We can characterize a prime number as
a number
A student claims that