MHN
Add a comment on Hacker News →
2 of 60 comments
  1. > This allows us to (1) elide modelling the semantics of the high level programming language, we can instead model the semantics of the machine--presumably simpler semantics

    ISAs are pretty complicated and reasoning about programs in that context is hard which is why we have high level languages.

    > This distinction in terminology used to be a colloquially accepted notion, when we heard "CompCert is a formally verified compiler" or "seL4 is a formally verified microkernel" we assumed the authors did not verify vacuous or trivial properties, because the work of verification itself was held to a high standard that highly affected the reputation of the researcher.

    CompCert has also had extensive empirical evaluation to vet the theorems. Famously the CSmith paper (https://users.cs.utah.edu/~regehr/papers/pldi11-preprint.pdf) has this rather choice quote:

    > As of early 2011, the under-development version of CompCert is the only compiler we have tested for which Csmith cannot find wrong-code errors. This is
    not for lack of trying: we have devoted about six CPU-years to the task. The apparent unbreakability of CompCert supports a strong
    argument that developing compiler optimizations within a proof framework, where safety checks are explicit and machine-checked,
    has tangible benefits for compiler users.

    At my work we've extended this to CPU millennia. I hasten to add this of course doesn't rule out the possibility of poorly formed assumptions in the semantics etc (it's empirical after all) but it helps to build evidence that we have the theorems and semantic design right. More generally differential testing of this sort offers a possible way forward to build evidence in favor of theorem statements beyond expert examination.

    > Every discussion of formal verification must come with a list of caveats, a precise understanding of what is trusted, what is proven and what is not.

    Anyone that seriously participates in this work practices this. The whole community. More importantly this is precisely the point of writing down a theorem so that we can closely examine the assumptions. To abuse the CompCert example yet further it's now entirely possible to draw the envelope of assumptions, which are many for a non-toy compiler: https://arxiv.org/html/2201.10280v2.

    Last note, I like the kiki bouba diagram if only because it evinces the problematic "round cow" assumption and how that doesn't pan out for real software.

  2. Everything is Prickles and Goo [0]

    [0] - https://www.youtube.com/watch?v=D4vHnM8WPvU