Show HN: Checking the Collatz conjecture using only TypeScript's type system
ostro.ws
ostro.ws
1) Could you maybe simplify the computational effort by defining "divide by 2" instead of general division, since you only ever divide by 2 for Collatz?
2) The author concludes by explicitly checking each integer. Given the power of types, isn't there a single statement you can make that would prompt it to check all integers, i.e. seeing if it can prove that all integers type-check?
2) I didn't mean it would guarantee a proof, I just meant it would attempt a proof up to the limit of its type checker's ability to prove type validity.