-
Defs:
-
- O: All objects
-
- P: All objects following the official spec
-
- T: All objects with the method
then
- T: All objects with the method
-
f(x)
. Return true iifx
⊆ P
-
g(x)
. Return true iifx
⊆ T
- 6
eval(x)
.x
⊆ P iffx
resolves in the future - 7
eval(x)
.x
!⊆ P iifeval
fails
-
-
Test using
g(x)
- Goal: { f(o) = g(o) | o ⊆ O }
- Try: o =
{then() {}}
, o ⊆ O, f(o) ≠ g(o) - Conclusion: Fails
-
Test using
eval(x)
- Goal: { eval(o) | o ⊆ O }
- Try:
x = {then() { sleep(inf) }}
,eval(x)
never terminates. Fallback proof: "the halting problem" - Conclusion: Fails
-
-
Save anonymous/ecf9ae41e58e8d9a9d6de8ecdb3c340f to your computer and use it in GitHub Desktop.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment