Question: Problem 4 . Consider a first - order logic with the following symbols: relational : just equality ( = ) ; functional: cat ( ,
Problem Consider a firstorder logic with the following symbols:
relational : just equality ; functional: cat;
constant: and e
For this logic, consider the interpretation where
the universe is the set of all finite binary strings;
maps to the relation which it true iff its two arguments are identical;
cat maps to the function which returns the concatenation xy of its arguments x and y maps to the the singlesymbol string ;
maps to the the singlesymbol string ; and
e maps to the the empty string epsi
We can use this logic to write formulas which represent complex properties of strings. For example, consider the formula
isOddx :yxcaty
represents the property that the binary number represented by the string x is odd
In each part below, write a formula which represents the given relation. If you wish, you may use a relation that you have already defined in a previous part.
a isEvenx for the binary number represented by x is evenb isSubstringx y for x is a substring of y
c isPowerOfx for the binary number represented by x is a power of d isEqualx y for the binary numbers represented by x and y are equal
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
