Questions tagged [decidability]

A set or language is decidable if its characteristic function is can be computed by an effective method. Use this tag when your question involves the (un-)decidability of a set or language.

A set $S \subseteq \mathbb{N}$ is decidable if its characteristic function $\chi_S$ can be computed by an effective method. Assuming the Church-Turing thesis, this means that $S$ is decidable if $\chi_S$ can be computed by a Turing machine or an equivalent model such as general recursive functions or the $\lambda$-calculus.

A set of arbitrary objects $S$ is decidable if there is an encoding $\langle \cdot \rangle$ s.t. $\{\langle x \rangle : x \in S\}$ is decidable. Some introductions define decidability for formal languages instead of sets of naturals numbers.

Important concepts in decidability include

Related tags

82 questions
5
votes
1 answer

A language is Turing recognizable iff it is a projection of a decidable language

I was wondering how to prove that a language $C$ is Turing-recognizable iff a decidable language $D$ exists such that $C = \{x \mid \exists y \;(\langle x, y\rangle \in D)\}$. I do not know how to prove this kind of questions, is there any help to…
5
votes
3 answers

Is partial correctness decidable?

Is partial correctness decidable? i.e., is there a general algorithm that for any pair of formal specification and encoded TM, returns true if and only if, when the TM halts, it meets the specification? I feel that the answer is likely no because of…
5
votes
7 answers

What are the conditions necessary for a programming language to have no undefined behavior?

For context, yesterday I posted Does the first incompleteness theorem imply that any Turing complete programming language must have undefined behavior?. Part of what prompted me to ask that question in the first place is that, awhile ago, someone…
4
votes
1 answer

Is the problem of checking whether the intersection of any two given CFL is CFL?

Is the following problem decidable. "Given 2 CFL, $L_1$ and $L_2$. Is $L_1 \cap L_2$ a CFL?" CFL is an abbreviation for "Context Free Language".
4
votes
1 answer

Is the Turing machine the only framework to analyse limits of computation?

In Theory of Computation lessons, the limits of computation are usually analyzed within the framework of Turing machines, so if something isn't solvable with Turing Machine, then we consider this problem as undecidable. I know computational models…
3
votes
1 answer

Is the language L = { | L(M) = L' } always undecidable when L' ≠ ∅?

Let $L' \subseteq \Sigma^*$ be a fixed, non-empty language. Define the language: $$ L = \left\{ \langle M \rangle \;\middle|\; L(M) = L' \right\} $$ That is, $L$ contains the descriptions of Turing machines $M$ whose language is exactly $L'$. Is it…
3
votes
2 answers

Decidability of {M | M accepts some x in less than |x| steps}

Is this language decidable? {M | M accepts some x in less than |x| steps} It feels like it should be undecidable but I can't think of a good proof that isn't similar to that of Rice's theorem (which I don't think applies here because this isn't a…
3
votes
1 answer

Prove that determining if a PDA has an infinite language is decidable

I have been given the following problem and was wondering if my solution is correct (taken from the textbook exercise in the book Introduction to the Theory of Computation by Martin Sipser): Given $$\text{INFINITE}_{\text{PDA}} =\{\langle M\rangle…
Stecco
  • 201
  • 2
  • 10
3
votes
1 answer

Effectively decidable vs. noneffectively (or ineffectively) decidable

The introduction of https://www.sciencedirect.com/science/article/pii/0001870882900482 starts with the following sentence: The word problem for commutative semigroups is effectively decidable. I know what a “decidable” problem or, more precisely,…
user127009
2
votes
0 answers

Undecidability of a language similar to the Halting Problem

I would like to prove the undecidability of the following language $L$, closely related to the Halting problem: $$L:=\{w \mid M_w \text{ accepts a word of size }|w|\}.$$ It is obvious for unary encodings, but for encodings that have several machines…
2
votes
1 answer

Why we can reduce $A_{TM}$ to $ALL_{CFG}$, but we can not reduce $A_{TM}$ to $E_{CFG}$

If a $PDA$ can be constructed to check whether a string is not a computation history for a Turing Machine. Like in the proof of $ALL_{CFG}$ is not decidable. Then we can construct a $PDA$ that accepts all computation histories of a Turing machine…
Air Homely
  • 21
  • 2
2
votes
1 answer

Reduction from $ALL$ to $DECIDE$

Let $DECIDE=${$ :\ M\ halts\ on \ all \ inputs$} and I wish to show its unrecognizable using a reduction from $ALL=${$ :L(M)=\Sigma ^* $} using a deterministic turing machine $R$ which runs in polynomial time: $\in ALL \rightarrow _R…
Aishgadol
  • 377
  • 2
  • 12
2
votes
3 answers

can a model of computation with infinitely many states be nontrivially decidable?

i'm trying to make a game in which the player faces an infinite (finitely specified) series of enemies and has to specify a strategy that provably defeats all of them (ie defeats enemy n in finite time for all n). i'm intending to do it by having…
Silver
  • 417
  • 3
  • 9
2
votes
1 answer

A language of natural numbers is decidable iff it is either finite or the image of some strictly increasing computable function

Suppose $L \subseteq \mathbb N$ such that, for the purpose of Turing machine computation, numbers in $L$ are represented by strings over the alphabet $\{0, 1\}$ in the standard binary notation. Prove that $L$ is decidable if and only if $L$ is…
SVMteamsTool
  • 453
  • 2
  • 13
2
votes
1 answer

Useless states in a PDA

I am trying to solve a problem in Sipser's Introduction to the Theory of Computation book, which reads: 4.22 A useless state in a pushdown automaton is never entered on any input string. Consider the problem of determining whether a pushdown…
t42d
  • 123
  • 5
1
2 3 4 5 6