<< Chapter < Page | Chapter >> Page > |
Some binary relations can be viewed as the encoding of a unary function, where the first element of the ordered pair representsthe function's value. For instance, in a previous exercise we encoded the binary function addition as a ternary relation .
Write a first-order formula describing the properties that a binary relation must have to correspond to a unary function.
Alternation of quantifiers: Determine the truth of each of the following sentencesin each of the indicated domains.
Four sentences:
Four domains:
Determine the truth of all sixteen combinations of the four statements and four domains.
Translate the following into first-order logic:
Raspberry sherbet with hot fudge ( ) is the tastiest dessert.Use as your only relation.
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, butthat 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 is played on a 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 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 serve aspremises 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 domain axioms for Sudoku, and briefly explain them. These will model the row, column, and subgrid constraints.In addition, you should include constraints on our above relations, such as that each location holds one value.
Some of the first-order equivalences are redundant. For each of the following, prove the equivalence using the other equivalences.
Assuming a non-empty domain, .
We can characterize a prime number as a number satisfying . Using the equivalences for first-order logic, show step-by-step that this is equivalent to the formula . Do not use any arithmetic equivalences.
A student claims that by the
distribution of quantifiers. This is actually trying to do two steps at once.Rewrite this as the two separate intended steps, determine which is wrong, and describe why that step is wrong.
Simplify the formula , so that the body of each quantifier contains only a single atomic formula involving that quantified variable. Provide reasoning for each step of your simplification.
[Practice problem solution provided.]
Prove that syllogisms are valid inferences. In other words, show that .
1 | Premise | |
2 | Premise | |
3 | ∀Elim, line 1 | |
4 | ⇒Elim, lines 2,3 |
What is wrong with the following
proofof ?
1 | subproof: | ||
1.a | Premise for subproof | ||
1.b | ∃Elim, line 1.a | ||
2 | ⇒Intro, line 1 |
Using the inference rules, formally prove the last part of the previous problem about ducks and such .
Give an inference rule proof of .
∀Intro?
Notification Switch
Would you like to follow the 'Intro to logic' conversation and receive update notifications?