Prove that the given function is totally computable

Click For Summary

Homework Help Overview

The discussion revolves around proving that a function ƒ from natural numbers to natural numbers is totally computable, given that its graph is a recursively enumerable set and ƒ(x) is defined for every x in ℕ.

Discussion Character

  • Conceptual clarification, Assumption checking

Approaches and Questions Raised

  • Participants explore the implications of the graph being recursively enumerable and discuss how to derive ƒ(n) from a computable function g(n) that outputs pairs (x, y) such that y = f(x).

Discussion Status

Some participants suggest methods for determining ƒ(n) by checking pairs outputted by g(n) and running g for successive values. There is an ongoing inquiry into whether this approach sufficiently proves that ƒ is totally computable, given the premise that ƒ(x) is defined for all x.

Contextual Notes

The discussion acknowledges the assumption that ƒ(x) is defined for every x in ℕ, which is central to the argument about total computability.

Bedrich
Messages
6
Reaction score
1
Hello, I'm trying to prove following problem.
1. Homework Statement

Graph of function ƒ : ℕ→ℕ is set {(x, ƒ(x)), x ∈ ℕ and ƒ(x) ≠ ⊥} ⊆ ℕ2. Prove that function ƒ is totally computable when ƒ(x) is defined for every x ∈ ℕ and his graph is recursively enumerable set

Homework Equations



The Attempt at a Solution


I have no idea how to proceed with proving such problem.

Do you have any suggestions how to prove it? I have recently started learning theory of computability and complexity, so some easy to understand answers would be appreciated.
 
  • Like
Likes   Reactions: berkeman
Physics news on Phys.org
If you know that the graph of ##f## is recursively enumerable, that means that there is a computable function ##g(n)## such that ##g(0), g(1), ...## outputs all the pairs ##(x,y)## such that ##f(x) = y##. If you were given such a function ##g##, and you were given a value ##n##, how would you go about figuring out what ##f(n)## was?
 
  • Like
Likes   Reactions: Bedrich
stevendaryl said:
If you know that the graph of ##f## is recursively enumerable, that means that there is a computable function ##g(n)## such that ##g(0), g(1), ...## outputs all the pairs ##(x,y)## such that ##f(x) = y##. If you were given such a function ##g##, and you were given a value ##n##, how would you go about figuring out what ##f(n)## was?
For every pair ##(x, y)## check if that pair is in the graph and if yes, then ##y## of that pair is ##f(n)##? If that is not nonsence.
 
Bedrich said:
For every pair ##(x, y)## check if that pair is in the graph and if yes, then ##y## of that pair is ##f(n)##? If that is not nonsence.

You have a function ##g(n)## which returns a pair ##(x,y)## such that ##y = f(x)##. Let's just make something up for example:

##g(0) = (12, 21)##
##g(1) = (34, 72)##
##g(2) = (0, 59)##
etc.
So we know after running ##g## for 3 values that ##f(12) = 21##, and ##f(34) = 72## and ##f(0) = 59##

So how would you find ##f(42)##, for example?
 
  • Like
Likes   Reactions: Bedrich
stevendaryl said:
You have a function ##g(n)## which returns a pair ##(x,y)## such that ##y = f(x)##. Let's just make something up for example:

##g(0) = (12, 21)##
##g(1) = (34, 72)##
##g(2) = (0, 59)##
etc.
So we know after running ##g## for 3 values that ##f(12) = 21##, and ##f(34) = 72## and ##f(0) = 59##

So how would you find ##f(42)##, for example?
I would keep running ##g(n)## for every possible ##n## (##g(3), g(4), g(5)##...) until an output pair would be ##(42, y)##.
 
Bedrich said:
I would keep running ##g(n)## for every possible ##n## (##g(3), g(4), g(5)##...) until an output pair would be ##(42, y)##.

Exactly. And eventually it will.
 
  • Like
Likes   Reactions: Bedrich
stevendaryl said:
Exactly. And eventually it will.
Thank you very much, but is it proving that ##f## is totally computable? Not just partialy computable?
 
Bedrich said:
Thank you very much, but is it proving that ##f## is totally computable? Not just partialy computable?

The premise is that "ƒ(x) is defined for every x ∈ ℕ". So for every ##x##, there must be a corresponding ##y## such that ##f(x) = y##.
 
  • Like
Likes   Reactions: Bedrich

Similar threads

  • · Replies 15 ·
Replies
15
Views
3K
  • · Replies 7 ·
Replies
7
Views
2K
  • · Replies 3 ·
Replies
3
Views
2K
  • · Replies 10 ·
Replies
10
Views
2K
  • · Replies 5 ·
Replies
5
Views
2K
Replies
20
Views
4K
Replies
8
Views
2K
  • · Replies 5 ·
Replies
5
Views
2K
  • · Replies 3 ·
Replies
3
Views
1K
Replies
7
Views
1K