Every story and comment from the Hacker News API, in a layout borrowed from 2001.
A comment on What is type safety?. Parent comment
What you'd need to do is something like
createProof : (n : Nat) -> (m : Nat) -> Maybe (n >= m)
There are no comments on this comment yet.
What you'd need to do is something like
which could either succeed or fail to produce the needed proof at runtime. Without the proof it'd be impossible to perform the subtraction, so that branch of your program is statically inaccessible.