Chosen topics Flashcards
Rice’s theorem
You can’t declare any non trivial declaration about a programs functionality
Proving undecidability using Rice’s theorem
Declare the language as an index group of a group game. Then show that game is non trivial (has at least one function in it and at least one that is not). Generally, if there is reference to how the program is written, than you can’t prove using this.
Proving unacceptable using Rice’s theorem
If in addition to rice’s theorem terms, ℎ(𝑥)∈Γ (the empty functions, never stops) then you can prove that it is unacceptable.
The game of life (rules)
- Infinite grid
- A living cell with less than two living neighbors will die from loneliness.
- A living cell with more than three living neighbors will die from density.
- A dead cell with exactly 3 neighbors will be born.
The game of life (power)
- A model equivalent to a Turing machine.
- Given a state of the world there is no predicting if the population will be extinct or not.
- The problem is equivalent to the halting problem.
Short Hebrew number
A short Hebrew number is any natural number that can be described in under 100 characters.
Berry’s paradox
“The smallest number that is not a short Hebrew number”. the paradox is that it is since you can describe it in less than 100 letters.
How to describe a binary number (M,w) so that x=M(w)
We double each character in M and than operate M and w using 0: M=11010 ו- w=0101(M,w)=1111001100010101
Kolmogorov complexity
The shortest description of a word x: d(x)
The Kolmogorov complexity of a word: k(x) = |d(x)|
Kolmogorov complexity rules
∃c∀x[k(x) ≤ |x| + c]
∃c∀x[k(xx) ≤ k(x) + c]
∃c∀x,y[k(xy) ≤ 2k(x) + k(y) + c]
Kolmogorov complexity definitions (compressible and un compressible)
- x is compressible by factor c if k(x) ≤ |x| - c
- x is incompressible if it isn’t compressible by a factor of 1.
For every number n there are strings of length n which are not compressible
there are only 2^n strings of length n. and 2^n - 1shorter strings.
x is compressible is acceptable but undecidable (proof)
acceptable: Given a string x we will guess a shorter string y which is a description of (M,w). If the machine stopped and x is on the strip we are done. If not try again.
Why is berry’s paradox wrong?
Berry’s paradox assumes that you can decide if a word has a compression or not. Which is not possible.