Explain what it means in terms of natural numbers

Assignment Help Theory of Computation
Reference no: EM132979928

Challenge

The notation we use for first-order predicate logic includes function symbols. This allows a very simple representation of the natural numbers. Namely, for natural numbers, we use terms built from a constant symbol (here we choose a, but any other symbol would do) and a function symbol of arity 1 (we will use s, for "successor"). The idea is that 0 is represented by a, 1 by s(a), 2 by s(s(a)), and so on. In general, s(x) represents the successor of x, that is, x+ 1. Logicians prefer this "successor" notation, because it uses so few symbols and supports recursive definition-a natural number is either ‘a' (the base case), or it is of the form ‘s(. . .)', where . . . is a term representing a natural number. (Of course, for practical use, we prefer the positional decimal system.)

With successor notation, we can capture the usual "less than or equal" ordering of N (the set of natural numbers) with these two axioms, where L(x, y) stands for x ≤ y:

∀y(L(a, y))

∀x∀y(L(x, y) ⇒ L(s(x), s(y)))

(1) says that 0 is smaller than or equal to any natural number, and (2) says that if x ≤ y then x + 1 ≤ y + 1. Similarly, we can capture addition by introducing a predicate symbol for the addition relation, letting P (x, y, z) stand for x + y = z:

∀y(P (a, y, y))
∀x∀y∀z(P (x, y, z) ⇒ P (s(x), y, s(z)))

Turning the conjunction of (1)-(4) into clausal form, we end up with this set of clauses:

{{L(s(v1), s(v2)), ¬L(v1, v2)}, {L(a, v3)}, {P (s(v4), v5, s(v6)), ¬P (v4, v5, v6)}, {P (a, v7, v7)}}

Task A. Use resolution to show that

∃x∃y(L(s(a), x) ∧ P (y, y, x)) (5)

is a logical consequence of the axioms (1)-(4).

Task B. Your resolution proof will not only establish the truth of (5). The resolution proof provides a sequence of most general unifiers, one per resolution step, and when these are composed, in the order they were generated, you have a substitution that solves the constraint 1 ≤ x∧y+y = x. Give that substitution and explain what it means in terms of natural numbers.

Reference no: EM132979928

Questions Cloud

Impact of human resources management activities : Critically discuss the impact of Human Resources Management activities on the Organisational Performance. The Candidate must justify how the chosen organization
What would be the reduction in singer equity : Singer Corporation owned 900,000 shares of Writer Corporation. What would be the reduction in Singer's equity as a result of the above transactions
Calculate the price of a three-month call option : Calculate the price of a 3-month call option on the Company stock with strike price equal to K22. Calculate the forward price for delivery in 9 months
What was the net profit on this option to the speculator : The spot rate at expiration was $0.48. Assume there are 62,500 units in a Swiss franc option. What was the net profit on this option to the speculator
Explain what it means in terms of natural numbers : Provides a sequence of most general unifiers, one per resolution step, and when these are composed, in the order they were generated, you have a substitution
What is the profit or loss : Use the profit formula to determine whether Benjamin's Backpacks makes a profit or loss if it sells 10 backpacks. What is the profit or loss
Determine whether g is valid or not : Determine whether G is valid or not. Either provide a proof that uses resolution to show validity, or else specify an interpretation that makes G false
By how much share premium would increase on February : A corporation was organized in January 2016 with authorized capital of P10 par value ordinary shares. By how much share premium would increase on February
Implement haskell function to encode the logical constraints : Implement a Haskell function to encode the logical constraints implied by an equality logic formula's connectives as a formula in propositional logic

Reviews

Write a Review

Theory of Computation Questions & Answers

  Finite-state machine design

Create a finite-state machine design to turn your FPGA development board into a simple programmable music box.

  Redundant sequence identi cation

Redundant sequence identi cation

  Compute a shortest superstring

Dynamic programming algorithm to compute a shortest superstring.

  Propositional and predicate logic

Write down a structural induction principle for the PlayTree free type

  Design a syntactic analyzer

Design a syntactic analyzer for the language specified by the grammar

  Design unambiguous grammar to parse expressions

Write a program would read two numbers and then print all numbers between the first and the second, inclusive. Design unambiguous grammar to parse expressions

  Consider a logic function with three outputs

Consider a logic function with three outputs,  A ,  B , and  C , and three inputs,  D ,  E , and  F . The function is defined as follows:  A  is true if at least one input is true,  B  is true

  Considering a single programmed operating system

Considering a single programmed operating system, what is the minimal total time required to complete executions of the two processes? You should explain your answer with a diagram.

  How to construct an nfa

Give a construction that assumes you are given a DFA for L and show how to construct an NFA (with or without ε-moves) to recognize sort(L).

  Equivalence classes to construct minimal dfa for language

How many equivalence classes does this relation have and what are they? Use these equivalence classes to construct the minimal DFA for the language.

  Impact of moore-s law on data center costs

Discuss the impact of Moore's law on data center costs on such things as servers and communications equipment. List at least 3 steps or recommendations your data center can take to offset some or all of the effect of Moore's law.

  Problem encountered in statements in predicate logic

How the problem would be encountered in attempting to represent the following statements in Predicate logic. it should be possible to: John only likes to see French movies.

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd