Syntax of logical formulas and terms

[14/64%]
Show
LaTeX

Determine whether the given sequence is a formula:

?
(a)

(P0&P1)P2¬P3(P_{0} \& P_{1}) P_{2} \neg P_{3};

(b)

(P0&P1)⊃P2(P_{0} \& P_{1}) \supset P_{2};

(c)

((P3⊃P0)&¬P0)((P_{3} \supset P_{0}) \& \neg P_{0});

(d)

(((¬P0)⊃P1)⊃¬(P2∨P3))(((\neg P_{0}) \supset P_{1}) \supset \neg (P_{2} \vee P_{3})).

In how many ways can parentheses be inserted into the following sequence so as to obtain a formula:

?
(a)

P0⊃¬P1∨P2&P0P_{0} \supset \neg P_{1} \vee P_{2} \& P_{0};

(b)

P1⊃P2⊃P3⊃¬P1⊃¬P2P_{1} \supset P_{2} \supset P_{3} \supset \neg P_{1} \supset \neg P_{2}?

Write out all subformulas of the formula:

?
(a)

(((P0⊃P1)&(P2⊃P3))⊃(¬P1∨P3))(((P_{0} \supset P_{1}) \& (P_{2} \supset P_{3})) \supset (\neg P_{1} \vee P_{3}));

(b)

((P0⊃P1)⊃((P0⊃¬P1)⊃¬P1))((P_{0} \supset P_{1}) \supset ((P_{0} \supset \neg P_{1}) \supset \neg P_{1})).

Prove that every formula CC that is not a propositional variable can be represented in one of the following forms: ¬A\neg A, (A&B)(A \& B), (A∨B)(A \vee B), (A⊃B)(A \supset B) for some formulas AA and BB.

?

Prove that the result of replacing a given occurrence of the formula CC in the formula AA, in place of a subformula BB, is again a formula.

?

Prove that the result of the substitution A(P\B)A(P \backslash B) of the formula BB for the propositional variable PP in the formula AA is again a formula.

?

Let f1f^{1} be a 1-ary, g2g^{2} a 2-ary, and h3h^{3} a 3-ary function symbol. Are the following words terms:

?
(a)

f1(g2(ν0,ν1))f^{1}(g^{2}(\nu_{0}, \nu_{1}));

(b)

g2(f1(ν2),h3(ν0,ν1,ν2))g^{2}(f^{1}(\nu_{2}), h^{3}(\nu_{0}, \nu_{1}, \nu_{2}));

(c)

f1(g2(ν0),h3(ν0,ν1,ν2))f^{1}(g^{2}(\nu_{0}), h^{3}(\nu_{0}, \nu_{1}, \nu_{2}))?

Let f1,g2,h3f^{1}, g^{2}, h^{3} be as in the previous problem, P1P^{1} a 1-ary and Q3Q^{3} a 3-ary predicate symbol. Are the following words formulas:

?
(a)

Q3(ν0,f1(ν1),h3(ν1,ν2,ν2))Q^{3}(\nu_{0}, f^{1}(\nu_{1}), h^{3}(\nu_{1}, \nu_{2}, \nu_{2}));

(b)

(P1(ν0)⊃∀ν1(Q3(ν0,ν1,ν2)&P1(g2(ν0,ν1))))(P^{1}(\nu_{0}) \supset \forall \nu_{1}(Q^{3}(\nu_{0}, \nu_{1}, \nu_{2}) \& P^{1}(g^{2}(\nu_{0}, \nu_{1}))));

(c)

Q3(P1(ν0),f1(ν1),f1(ν2))Q^{3}(P^{1}(\nu_{0}), f^{1}(\nu_{1}), f^{1}(\nu_{2}));

(d)

f1(h3(ν0,ν1,ν2))f^{1}(h^{3}(\nu_{0}, \nu_{1}, \nu_{2}))?

Show that the expression

∃ν0∀ν1…∀νν0(P(ν1)&…&P(νν0)), \exists \nu _{0} \forall \nu _{1} \ldots \forall \nu _{\nu _{0}} (P(\nu _{1}) \& \ldots \& P(\nu _{\nu _{0}})),

where PP is a 1-ary predicate symbol, is not a formula.

?

Write out all subformulas of the formula:

?
(a)

Q2(f1(ν0),g2(ν0,ν1))Q^{2}(f^{1}(\nu_{0}), g^{2}(\nu_{0}, \nu_{1}));

(b)

(∃ν0Q2(ν0,ν1)⊃¬(P1(g2(ν0,ν1))&∀ν2P1(ν2)))(\exists \nu_{0} Q^{2}(\nu_{0}, \nu_{1}) \supset \neg (P^{1}(g^{2}(\nu_{0}, \nu_{1})) \& \forall \nu_{2} P^{1}(\nu_{2}))).

Describe the set of terms in one variable ν0\nu_{0}:

?
(a)

and function symbol f1f^{1};

(b)

and function symbol g2g^{2}.

Which occurrences of variables are free and which are bound in the formulas:

?
(a)

∀ν0(P(ν0,ν1)⊃∀ν1Q(ν1))\forall \nu_{0}(P(\nu_{0}, \nu_{1}) \supset \forall \nu_{1} Q(\nu_{1}));

(b)

(∀ν0P(ν0,ν1)⊃∀ν1R(ν0,ν1))(\forall \nu_{0} P(\nu_{0}, \nu_{1}) \supset \forall \nu_{1} R(\nu_{0}, \nu_{1}));

(c)

(¬∃ν2Q(ν2,ν2)&R(f(ν1,ν2)))(\neg \exists \nu_{2} Q(\nu_{2}, \nu_{2}) \& R(f(\nu_{1}, \nu_{2})))?

Is the term tt free for xx in AA:

?
(a)

t=f(ν0,ν3)t = f(\nu_{0}, \nu_{3}), x=ν1x = \nu_{1}, A=∀ν0P(ν0,ν1)A = \forall \nu_{0} P(\nu_{0}, \nu_{1});

(b)

t=f(ν1,ν2)t = f(\nu_{1}, \nu_{2}), x=ν1x = \nu_{1}, A=(P(ν1,ν2)⊃∃ν2Q(ν2))A = (P(\nu_{1}, \nu_{2}) \supset \exists \nu_{2} Q(\nu_{2}))?

Prove that:

?
(a)

a term containing no variables is free for any variable in any formula;

(b)

the variable xx is free for xx in any formula;

(c)

if AA contains no free occurrences of xx, then any term is free for xx in AA.

References

[LaMa02] Lavrov I.A., Maksimova L.L. Задачи по теории множеств, математической логике и теории алгоритмов. 5-е изд., Физматлит, 2002.