Writing a Compiler by Proving It Correct
liamoc.net
liamoc.net
Quite strange that the article doesn't mention CompCert though, which has an extensive bibliography:
http://compcert.inria.fr/publi.html
Edit: The person I quote is a researcher in formal verification, I think it's Gérard Huet from Inria.
CompCert
There's now a lot of work in this space, e.g. http://sf.snu.ac.kr/sepcompcert and it's going to stay that way!
Whoever said this has been proven wrong. This stuff works, it's just expensive. The only real question is: when will formal verification be convenient enough to be widely used in industry. I reckon that's 15-20 years away. Right now organisations like Facebook (http://fbinfer.com) and Microsoft (https://www.fstar-lang.org) use it, but sparingly.[1] https://lirias.kuleuven.be/bitstream/123456789/471365/3/soun...
http://sf.snu.ac.kr/gil.hur/publications/ROSAEC_2014_002.pdf
I appreciate that it's a toy compiler, but I really wish people wouldn't leave that out. The quality of a compiler's user interface almost entirely depends on its error messages, so it's important to demonstrate how that's done.
(assuming types/functions similar to Haskell, I don't actually know Agda)