Syntax of logical formulas and terms
[14/64%]Determine whether the given sequence is a formula:
;
;
;
.
In how many ways can parentheses be inserted into the following sequence so as to obtain a formula:
;
?
Write out all subformulas of the formula:
;
.
Prove that every formula that is not a propositional variable can be represented in one of the following forms: , , , for some formulas and .
Prove that the result of replacing a given occurrence of the formula in the formula , in place of a subformula , is again a formula.
Prove that the result of the substitution of the formula for the propositional variable in the formula is again a formula.
Let be a 1-ary, a 2-ary, and a 3-ary function symbol. Are the following words terms:
;
;
?
Let be as in the previous problem, a 1-ary and a 3-ary predicate symbol. Are the following words formulas:
;
;
;
?
Show that the expression
where is a 1-ary predicate symbol, is not a formula.
Write out all subformulas of the formula:
;
.
Describe the set of terms in one variable :
and function symbol ;
and function symbol .
Which occurrences of variables are free and which are bound in the formulas:
;
;
?
Is the term free for in :
, , ;
, , ?
Prove that:
a term containing no variables is free for any variable in any formula;
the variable is free for in any formula;
if contains no free occurrences of , then any term is free for in .