Unofficial Hacker News companion — get notified on comment replies, and more.

So you want to build a mainstream formally verifiable language (opens external site)

119 points by mpweiher 2 days ago | danilafe.com | 82 comments on HN | Vote on HN (opens Hacker News) |

View full thread · View on Hacker News

Comment thread (1)

  1. I still don’t get you. There’s definitely a step-by-stepness in math. Nobody can hope to put a complex proof like FLT in their head all at once.

    Equality works both directions in math just as it does in programming (the == operator in popular languages). Variable assignments don’t because they model definitions. The only difference is referential transparency, which is not required in most programming languages but a good thing to have (say in Haskell).

    I do use contrapositivity occasionally when programming, but I don’t use proof by contradiction. This is actually interesting because proof by contradiction is inherently non-constructive: it can be used to prove the existence of things without a way to compute them. I do think restricting math to what’s computable makes things much easier and makes students’ brain hurt less, but it is also a lot less interesting.

    Good luck!