arXiv · 1805.08106
The sufficiently smart compiler is a theorem prover
Abstract
That the Haskell Compiler GHC is capable of proving non-trivial equalities between Haskell code, by virtue of its aggressive optimizer, in particular the term rewriting engine in the simplifier. We demonstrate this with a surprising little code in a GHC plugin, explains the knobs we had to turn, discuss the limits of the approach and related applications of the same idea, namely testing that promises from Haskell libraries with domain-specific optimizations hold.
Explore related subjects
Keep this discovery
Joachim Breitner. 2018-05-21. The sufficiently smart compiler is a theorem prover. https://arxiv.org/abs/1805.08106
Cite the original work for its findings. Save a collection to share your selection of sources.