Predicate Logic
[25/100%]For each of the following formulas determine which occurrences of the variables in them are free and which are bound (and by which quantifier). Here is a three-place predicate symbol.
;
For each formula from the previous problem
;
determine which of the following substitutions are possible: , . Explain why. In the cases where it is possible, find the result of the substitution.
Let be a two-place predicate symbol. Write closed formulas meaning:
is reflexive;
is antireflexive;
is symmetric;
is antisymmetric;
is transitive;
is an equivalence relation;
is a strict linear order.
Let be a two-place predicate symbol meaning a non-strict partial order relation. Write formulas with one free variable meaning:
is the greatest element;
is a maximal element;
is the unique maximal element;
is comparable with every element;
is comparable with every maximal element;
is incomparable with exactly one element.
Let us assume that the domain is the set of people, and the signature contains the symbols and , meaning the relations "to be a parent of", "to be married to", and "to be a man", respectively. Write formulas meaning:
is the grandson of ;
has at least two children;
and have one common child;
has an unmarried sister;
and are cousins;
is married, and of his sons only one is married.
The domain consists only of the real numbers and one-place infinitely differentiable functions on the set . The signature contains a three-place predicate symbol , where says "the value of the function at the argument equals "; and a two-place symbol , where means " is the derivative of ". Write formulas denoting the following. It is allowed to construct auxiliary formulas and use those constructed earlier:
is a number;
is a function;
is a constant function;
is a function identically equal to zero;
;
is the identity function;
;
is the exponential ;
— for numbers ;
— for numbers
is a nonnegative number;
the number is less than the number ;
the function takes all real values;
the function is bijective;
the function is sine;
the number equals ;
the number is a natural number.
Elementary arithmetic of natural numbers is the following interpretation : the domain is the set of natural numbers , the three-place predicate symbols and mean that and respectively, and the names of numbers are written in the usual way in decimal notation: 0 — zero, 1 — one, and so on. There are also variables and others whose values are not known in advance.
Write formulas with free variables from that are true in elementary arithmetic of natural numbers if and only if
is an even number;
and are coprime;
lies between and ;
is the greatest common divisor of and ;
is the least common multiple of all the numbers in the interval .
Let the signature contain a single two-place predicate symbol , which in the interpretation means, as usual, "to be a subset of". Write formulas with free variables from that are true in this interpretation if and only if
;
;
;
;
;
.
Let the signature contain two predicate symbols and . Tarski's geometry is the interpretation whose domain is the set of points in the Euclidean plane, means that the points and lie on one line and in exactly this order ( between and , not necessarily distinct), and means that the segments and are equal in length.
Write formulas with free variables from the set that are true in Tarski's geometry if and only if
and form a triangle;
is the midpoint of the segment ;
the ray is the bisector of the angle ;
the angle is a right angle;
the points lie on one circle;
the triangle is acute;
the segment is shorter than ;
the point lies inside the circle centered at passing through the point lying on it.
Represent each of the following sentences by a formula of predicate logic, choosing in each case a suitable signature.
Not all students take both calculus and history.
Only one student did not take the discrete mathematics exam.
Only one student scored 100 points on all exams.
The maximum score obtained in discrete mathematics exceeds the maximum score obtained in computer science.
There is a barber who shaves only those inhabitants of the town who do not shave themselves.
There are politicians who can fool all the people for some of the time, there are politicians who can fool some of the people all of the time, but no one can fool all of the people all of the time.
Write a formula of predicate logic that is true only in interpretations whose domain contains one element (two, three, elements).
Write a formula of predicate logic that is true only in interpretations in which the -place relation means a function.
Determine which of the following formulas are true in elementary arithmetic (problem 255 on p. 75), explain what they mean:
;
;
;
;
Determine which of the following formulas are true in Tarski's geometry (problem 257 on p. 75), explain what they mean:
;
;
The signature and interpretation are taken from problem 254 on p. 74. Determine which of the following formulas are true in this interpretation, explain what they mean:
;
;
;
;
.
The signature consists of a two-place predicate symbol , the individual variables and others. The interpretation is depicted in fig. 6, an arrow from to means that (such interpretations are called graphs).
Fig. 6: The graph \mathfrak {G} from problem 264.
Determine which of the following formulas are true in this interpretation, explain what they mean:
;
;
;
;
;
;
Prove the following equivalences:
;
;
.
Prove the following equivalences:
;
;
;
.
Prove the following implications:
;
;
;
.
Give examples of formulas without negations of elementary arithmetic that show that the implications
;
;
;
.
from the previous problem are false in the reverse direction.
Bring the following formulas to prenex form, is a two-place predicate symbol:
;
;
.
Using transformations, prove the following equivalences, where the formula does not contain the variable free:
;
;
.
Prove that a quantifier-free formula of predicate logic that does not contain the equality sign is identically true if and only if it can be obtained from some identically true Boolean formula by replacing every occurrence of each propositional variable in with some atomic subformula of .
Using transformations, prove the identical truth of the following formulas:
;
;
.
Prove that the following formula cannot be true on any finite domain, but can be true on infinite ones: