by exi2 · 10y ago · 0 comments
How would you verify the correctness of this function with types alone:
Integer add(Integer a, Integer b) { return a + b; }
How would types verify for me that the result is correct and not a+b+1?
Formal proofs work for this but to make them work you need more than just types.
That sounds like a joke but it's what going overboard with dependently typed programming languages is like.