Description: Folk theorem. For any algorithm deterministically processing a stream of data (essentially, an infinite tape with cell indices I and finite alphabet U ), if it terminates on every possible input, then it never looks beyond a finite portion U. ran S of the input.
Termination is expressed here with a weaker condition: that an execution may only look at a finite number of cells. Obviously, a program which finishes in a finite number of steps can only scan finite set of cells.
This theorem has many corollaries, such as: any encoding scheme able to represent all integers has at least one non-decodable tape (in other terms, encoding of the infinity).
I no longer have the source for this theorem but I believe I first read about it on LessWrong. My gratitude to Grok for suggesting that this theorem will require Axiom of Choice, and to DeepSeek for suggesting the topology-based proof route. (Contributed by Ender Ting, 28-Jul-2026)
| Ref | Expression | ||
|---|---|---|---|
| Hypotheses | tmach.finalph | ||
| tmach.exindex | |||
| tmach.tapelist | |||
| tmach.scanmap | |||
| tmach.agreemap | |||
| tmach.agreement | |||
| Assertion | tmachfullfin |
| Step | Hyp | Ref | Expression |
|---|---|---|---|
| 1 | tmach.finalph | ||
| 2 | tmach.exindex | ||
| 3 | tmach.tapelist | ||
| 4 | tmach.scanmap | ||
| 5 | tmach.agreemap | ||
| 6 | tmach.agreement | ||
| 7 | 1 2 3 4 5 6 | tmachlem-franscan | |
| 8 | 1 2 3 4 5 6 | tmachlem-fssscan | |
| 9 | unifi | ||
| 10 | 7 8 9 | syl2anc |