Re:Coq is a Lean Typechecker
by zozbot234 on Tuesday January 28, 2020 @04:57PM
(#22174520)
Very nice work. This kind of embedding (a direct equivalent to "transpiling" for code) is quite common in the formal methods community; for example, Freek Wiedijk has shown a similar embedding of HOL Light https://www.cs.ru.nl/~freek/notes/index.html into Coq.
[ Parent
| on HN ]
You can actually do much better than mere embeddings. Using program translations similar to what Haskell users routinely perform when using the do-notation for monads, you can actually extend your type theory with new reasoning principles. See for instance the parametric exceptional theory [1], which adds well-behaved exceptions and allows to extend Coq with the independence of premises, i.e. (¬A → ∃n:ℕ. P n) → ∃n:ℕ. (¬A → P n).
There is also a Dedukti[1][2] project that can load the logic from many different systems, including Coq[3].
[1] https://deducteam.github.io/