@egbertrijke One place to look for answers is Mario Carneiro's thesis on Metamat...
soaproot @soaproot@sfba.social
@egbertrijke One place to look for answers is Mario Carneiro's thesis on Metamath Zero. It includes a converter between Lean and Metamath (or a format close to Metamath). Perhaps the best place to link is https://github.com/digama0/mm0 or the thesis is https://digama0.github.io/mm0/thesis.pdf if that seems more convenient.