News for hackers. Stuff that matters.
Re:The category design pattern by omginternets on Sunday November 08, 2015 @09:29AM (#10528556)
I don't doubt it, but I'm not sure what you're trying to say. Would you elaborate?
Re:The category design pattern by catnaroek on Sunday November 08, 2015 @03:41PM (#10529799)
I have a hard time already convincing myself that correct sequential imperative algorithms are indeed correct - which probably means that I'm a bad programmer, but I can't change who I am. So convincing myself that that Raft, a concurrent algorithm, is correct (meets its specification) from an informal description is completely out of question - where is the formal proof of correctness?
Re:The category design pattern by mbrock on Sunday November 08, 2015 @04:49PM (#10530122)
Take a look here for pointers to formal proofs:

https://news.ycombinator.com/item?id=10017549

Specifically Verdi, a Coq framework for distributed system verification, which now includes a formally proven Raft implementation.

https://github.com/uwplse/verdi

This appears to be the main theorem, "raft_linearizable":

https://github.com/uwplse/verdi/blob/master/raft-proofs/EndT...

Re:The category design pattern by catnaroek on Sunday November 08, 2015 @05:24PM (#10530252)
Thank you very much. :-)
Re:The category design pattern by omginternets on Tuesday November 17, 2015 @03:50PM (#10583851)
Ah, sorry. I think you're reading this with a much deeper understanding of mathematics than I.

I'm really curious, though. Could you give me some insight into how algorithms are proven correct?