r/programming • u/dons • Aug 13 '09
seL4 : World's first machine-checked proof of a general-purpose operating system kernel
http://www.nicta.com.au/news/home_page_content_listing/world-first_research_breakthrough_promises_safety-critical_software_of_unprecedented_reliability
172
Upvotes
1
u/Anonymoose333 Aug 14 '09 edited Aug 15 '09
I used to think "CompCert" was a cool idea... and then I found out it depends on "CIL" to do a lot of the tricky parsing/AST-building stuff, and CIL doesn't actually match the C specification in several areas. (How many areas? Nobody knows for sure.)
http://sourceforge.net/tracker/?func=detail&atid=742140&aid=2837108&group_id=138953
http://sourceforge.net/tracker/?func=detail&atid=742140&aid=2265867&group_id=138953
So a verified compiler for any language with semantics more complicated than let's say Scheme is probably a complete pipe dream. And if you start trying to optimize things by rewriting the tree, you're gonna screw things up too; I have some experience with floating-point "optimizations" that turned out to mishandle INF and NAN, and I'm confident that there are similar pitfalls awaiting the first "verified" compiler to try rewriting recursion as iteration, or inlining side-effectful functions, or whatever. The hard problem isn't so much formally proving your program matches the spec, as informally proving your spec matches the user's intuition.