upvote
HOL Light trusted kernel is 400–500 lines of code.

HOL Light defines only 10 primitive inference rules.

HOL Light's maximizes trustworthiness and manual auditability by humans or machines (YOU CAN DO IT). The kernel itself has been formally verified inside HOL Light.

There are at least 3 separate HOL light implementations: HOL Light, CakeML, HOLZero that implement the exactly same logic.

Lean's kernel extends its primitive environment every time an inductive type or quotient primitive is declared. Once you import all of Mathlib it's very large. That's why you want to use something like HOL to verify those.

reply
> Once you import all of Mathlib it's very large

This is why Riemann proof only used a tiny bit of mathlib. An I think the formalization of Fermat's Last Theorem didn't use it at all.

reply