I feel like the real answer has gotten buried here, so I will answer my own question. The kernels are not "proven consistent" in any absolute sense. They are proven equiconsistent with ZFC plus inaccessible cardinals. This means it is "as consistent as everything else we have been doing for the last century," which is good enough.
I worked on formal provers in 2013 and 2014. Godel said that any consistent system could not be complete. The provers are consistent, but not complete - there are true mathematical statements that cannot be proven in their system of axioms.
They are shown to be consistent by proofs that false cannot be proven. In Type Theory “false cannot be proven” is encoded as “the Type Theory is strongly normalizing and the Empty type can never be inhabited”. Lean is based on Coquand’s Calculus of Constructions. There are proofs of its consistency, see link below.
Godel proved that a system cannot prove itself consistent, so the proofs are probably written in Set Theory.
https://arxiv.org/abs/2210.11240