0% found this document useful (0 votes)
34 views38 pages

Undecidability - Capstone Presentation

A presentation on undecidability of machines

Uploaded by

Bob bob
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
34 views38 pages

Undecidability - Capstone Presentation

A presentation on undecidability of machines

Uploaded by

Bob bob
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 38

Decidability Through Turing Machines

Jibran Abbasi

The College of New Jersey

September 2, 2024

Abbasi (TCNJ) TCNJ September 2, 2024 1 / 17


Outline

1 Introduction

2 Background

3 Main Statement

4 Examples & Conclusion

Abbasi (TCNJ) TCNJ September 2, 2024 2 / 17


Introduction

Introduction

Abbasi (TCNJ) TCNJ September 2, 2024 3 / 17


Introduction

Late 19th and Early 20th Century Mathematics

Non-Euclidean Geometry
Lobachevsky & Gauss

Abbasi (TCNJ) TCNJ September 2, 2024 4 / 17


Introduction

Late 19th and Early 20th Century Mathematics

Non-Euclidean Geometry
Lobachevsky & Gauss
Real Analysis
Weierstrass

Abbasi (TCNJ) TCNJ September 2, 2024 4 / 17


Introduction

Late 19th and Early 20th Century Mathematics

Non-Euclidean Geometry
Lobachevsky & Gauss
Real Analysis
Weierstrass
Set Theory
Georg Cantor

Abbasi (TCNJ) TCNJ September 2, 2024 4 / 17


Introduction

Intuitonists vs Formalists

Intuitionists: Math is a creation of the human mind


Formalists: Math can be put on clear, logical foundations using Set Theory

Abbasi (TCNJ) TCNJ September 2, 2024 5 / 17


Introduction

Intuitonists vs Formalists

Intuitionists: Math is a creation of the human mind


Formalists: Math can be put on clear, logical foundations using Set Theory
Hilbert’s dream

Abbasi (TCNJ) TCNJ September 2, 2024 5 / 17


Introduction

Intuitonists vs Formalists

Intuitionists: Math is a creation of the human mind


Formalists: Math can be put on clear, logical foundations using Set Theory
Hilbert’s dream
Complete: Is there a proof for every true statement?

Abbasi (TCNJ) TCNJ September 2, 2024 5 / 17


Introduction

Intuitonists vs Formalists

Intuitionists: Math is a creation of the human mind


Formalists: Math can be put on clear, logical foundations using Set Theory
Hilbert’s dream
Complete: Is there a proof for every true statement?
Consistent: Is math free of contractions?

Abbasi (TCNJ) TCNJ September 2, 2024 5 / 17


Introduction

Intuitonists vs Formalists

Intuitionists: Math is a creation of the human mind


Formalists: Math can be put on clear, logical foundations using Set Theory
Hilbert’s dream
Complete: Is there a proof for every true statement?
Consistent: Is math free of contractions?
Decidable: Is there an algorithm to determine whether a statement always
follows from the axioms?

Abbasi (TCNJ) TCNJ September 2, 2024 5 / 17


Introduction

Decidability and Completeness

We will prove one of these to be false


Decidable

Abbasi (TCNJ) TCNJ September 2, 2024 6 / 17


Introduction

Decidability and Completeness

We will prove one of these to be false


Decidable
The Halting Problem

Abbasi (TCNJ) TCNJ September 2, 2024 6 / 17


Background

Background

Abbasi (TCNJ) TCNJ September 2, 2024 7 / 17


Background

Computational Machines

Machine types
Finite automata
Turing Machine (TM)

Abbasi (TCNJ) TCNJ September 2, 2024 8 / 17


Background

Computational Machines

Machine types
Finite automata
Turing Machine (TM)

Theorem
The Halting Problem: It is impossible to determine in advance whether any
Turing Machine will halt (by accepting on rejecting) some given input.

Abbasi (TCNJ) TCNJ September 2, 2024 8 / 17


Background

Finite Automata Example

Figure: The above image is a simple finite automaton

Abbasi (TCNJ) TCNJ September 2, 2024 9 / 17


Background

Finite Automata Example

Figure: The above image is a simple finite automaton

Consider the string 0101

Abbasi (TCNJ) TCNJ September 2, 2024 9 / 17


Background

Turing Machine

Definition
A Turing Machine is a 7-tuple, (Q, Σ, Γ, δ, qo , qa , qr ) where Q, Σ, Γ are all finite
sets and
1 Q is the set of states,
2 Σ is the input alphabet not containing the blank symbol U
3 Γ is the tape alphabet, where U ∈ Γ and Σ ⊂ Γ
4 Σ: Q × Γ → Q × Γ × {L, R} is the transition function,
5 qo ∈ Q is the start state,
6 qa ∈ Q is the accept state, and
7 qr ∈ Q is the reject state where qr ̸=qa .

Abbasi (TCNJ) TCNJ September 2, 2024 10 / 17


Background

Turing Machine Example

Figure: The above image is a Turing Machine running a tape of length four

Abbasi (TCNJ) TCNJ September 2, 2024 11 / 17


Background

Turing Machine Example

Figure: The above image is a Turing Machine running a tape of length four

Consider the string abab

Abbasi (TCNJ) TCNJ September 2, 2024 11 / 17


Main Statement

Main Statement

Abbasi (TCNJ) TCNJ September 2, 2024 12 / 17


Main Statement

Halting Problem Proof

Assumption: Let there exist a TM A that is decidable on H

Abbasi (TCNJ) TCNJ September 2, 2024 13 / 17


Main Statement

Halting Problem Proof

Assumption: Let there exist a TM A that is decidable on H


H is the decision problem as is defined as
{⟨p, x⟩| program p halts on input x}

Abbasi (TCNJ) TCNJ September 2, 2024 13 / 17


Main Statement

Halting Problem Proof

Assumption: Let there exist a TM A that is decidable on H


H is the decision problem as is defined as
{⟨p, x⟩| program p halts on input x}
Consider a second TM B with the following properties

Abbasi (TCNJ) TCNJ September 2, 2024 13 / 17


Main Statement

Halting Problem Proof

Assumption: Let there exist a TM A that is decidable on H


H is the decision problem as is defined as
{⟨p, x⟩| program p halts on input x}
Consider a second TM B with the following properties
It takes in an input ⟨p⟩

Abbasi (TCNJ) TCNJ September 2, 2024 13 / 17


Main Statement

Halting Problem Proof

Assumption: Let there exist a TM A that is decidable on H


H is the decision problem as is defined as
{⟨p, x⟩| program p halts on input x}
Consider a second TM B with the following properties
It takes in an input ⟨p⟩
Runs A on input ⟨p, ⟨p⟩⟩

Abbasi (TCNJ) TCNJ September 2, 2024 13 / 17


Main Statement

Halting Problem Proof

Assumption: Let there exist a TM A that is decidable on H


H is the decision problem as is defined as
{⟨p, x⟩| program p halts on input x}
Consider a second TM B with the following properties
It takes in an input ⟨p⟩
Runs A on input ⟨p, ⟨p⟩⟩
Halts if and only if A rejects the input

Abbasi (TCNJ) TCNJ September 2, 2024 13 / 17


Main Statement

Halting Problem Proof

Assumption: Let there exist a TM A that is decidable on H


H is the decision problem as is defined as
{⟨p, x⟩| program p halts on input x}
Consider a second TM B with the following properties
It takes in an input ⟨p⟩
Runs A on input ⟨p, ⟨p⟩⟩
Halts if and only if A rejects the input
Meaning, B runs input p and decides the halting problem on it

Abbasi (TCNJ) TCNJ September 2, 2024 13 / 17


Main Statement

Halting Problem Proof

Consider the case in which B receives ⟨B⟩ as an input


It will run A on the input ⟨B, ⟨B⟩⟩ resulting in two cases

Abbasi (TCNJ) TCNJ September 2, 2024 14 / 17


Main Statement

Halting Problem Proof

Consider the case in which B receives ⟨B⟩ as an input


It will run A on the input ⟨B, ⟨B⟩⟩ resulting in two cases
1 A is accepted. This means B halts on the input ⟨B⟩. However, by the way B
is defined if A accepts the input the TM will not halt, so B does not halt on
⟨B⟩. If this occurs observe that we will enter an infinite loop and our TM will
not halt.

Abbasi (TCNJ) TCNJ September 2, 2024 14 / 17


Main Statement

Halting Problem Proof

Consider the case in which B receives ⟨B⟩ as an input


It will run A on the input ⟨B, ⟨B⟩⟩ resulting in two cases
1 A is accepted. This means B halts on the input ⟨B⟩. However, by the way B
is defined if A accepts the input the TM will not halt, so B does not halt on
⟨B⟩. If this occurs observe that we will enter an infinite loop and our TM will
not halt.
2 A is rejected. This means B does not halt on input ⟨B⟩. However, by the way
B is defined if A is rejected the TM terminates, so B halts on ⟨B⟩. If this
occurs observe that our TM must halt.

Abbasi (TCNJ) TCNJ September 2, 2024 14 / 17


Main Statement

Halting Problem Proof

Consider the case in which B receives ⟨B⟩ as an input


It will run A on the input ⟨B, ⟨B⟩⟩ resulting in two cases
1 A is accepted. This means B halts on the input ⟨B⟩. However, by the way B
is defined if A accepts the input the TM will not halt, so B does not halt on
⟨B⟩. If this occurs observe that we will enter an infinite loop and our TM will
not halt.
2 A is rejected. This means B does not halt on input ⟨B⟩. However, by the way
B is defined if A is rejected the TM terminates, so B halts on ⟨B⟩. If this
occurs observe that our TM must halt.
In both cases we have a contradiction

Abbasi (TCNJ) TCNJ September 2, 2024 14 / 17


Examples & Conclusion

Examples & Conclusion

Abbasi (TCNJ) TCNJ September 2, 2024 15 / 17


Examples & Conclusion

Real World Consequnces

Must consider possibility of non-existence of solution

Abbasi (TCNJ) TCNJ September 2, 2024 16 / 17


Examples & Conclusion

Real World Consequnces

Must consider possibility of non-existence of solution


Want a compiler to find the code that has the lowest possible runtime for
some arbitrary program

Abbasi (TCNJ) TCNJ September 2, 2024 16 / 17


Examples & Conclusion

Real World Consequnces

Must consider possibility of non-existence of solution


Want a compiler to find the code that has the lowest possible runtime for
some arbitrary program
Anti-virus program
Create a program to check that anti-virus never executes a malicious
instruction

Abbasi (TCNJ) TCNJ September 2, 2024 16 / 17


Examples & Conclusion

Thank You!

Abbasi (TCNJ) TCNJ September 2, 2024 17 / 17

You might also like