5 ms·
You are describing types as sets, and in intensional type theory types are not sets. There is also extensional type theory, where types can be sets, but in gene
by 4ad 5y ago
You are describing types as sets, and in intensional type theory types are not sets. There is also extensional type theory, where types can be sets, but in general we are not talking about that when we speak about type theory in connection to computer science.
But regardless of ITT vs. ETT, the point of type theory is that proofs are mathematical objects. That's where the real power comes from and this is the power unityped languages lack.
I suspect that this false belief that dynamically-checked language afficionados have, of types being sets, is responsible for their disdain for statically-typed languages. If you think that types are sets, it's easy to miss what they can do.
- lisper 5y agoWhat is "intensional type theory"? Did you mean "intentional"? I know what intentional logic is, but I've never heard of intentional type theory before (and neither has wikipedia).
- 4ad 5y agoAt the risk of more confusion https://ncatlab.org/nlab/show/intensional+type+theory https://ncatlab.org/nlab/show/intensional+type+theory. As a gentle introduction to modern type theory I would recommend https://arxiv.org/abs/1601.05035 https://arxiv.org/abs/1601.05035.