Skip to content

Instantly share code, notes, and snippets.

@ryuta-ito
Created March 15, 2020 01:03
Show Gist options
  • Save ryuta-ito/f8aecd770458d5ef3fdc09b8863b257a to your computer and use it in GitHub Desktop.
Save ryuta-ito/f8aecd770458d5ef3fdc09b8863b257a to your computer and use it in GitHub Desktop.
halt(x, y): xにyを適用した際に
| 停止する場合 -> True
| 無限ループする場合 -> False
X(x): halt(x, x)が
| Trueの場合 -> 無限ループをする
| Falseの場合 -> Trueを返す(停止する)
X(x)の指標をeしたとき
halt(e, e)が
Trueを返すと仮定
X(x)は無限ループするのでhalt(e, e)はFalseを返す
Falseを返すと仮定
X(x)はTrueを返す(停止する)のでhalt(e, e)はTrueを返す
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment