Better HN
topnewbestaskshowjobs
Log inSign up

wasabiz

1 karma · joined Jul 1, 2014 (12y ago) · 4 submissions

Submissions

comment 1w ago · link · parent

But doesn't a specification need semantics to be meaningful in the first place? For example, without knowing the semantics, how can I be sure that `S.intVal 42` actually represents the integer 42 in Lean, rather than 0?

comment 1w ago · link · parent

I'm a bit confused. How can the Lean specifications compile if the Rust semantics are not public?

comment 1w ago · link · parent

I don’t think this really applies to real-world programs.

Basically, every program is written with some confidence that it should work correctly if written this way. This is generally true even for AI-generated code. And if there is such confidence, then the argument for its correctness should naturally follow from carefully spelling out the reasoning behind that confidence.

In practice, the correctness of almost every program we encounter in everyday life is actually very easy to argue for, compared to difficult mathematical problems. And when it isn’t, any decent programmer would leave a comment explaining why it works. Otherwise, I think most people would agree that the code should probably be rewritten.