@egbertrijke One place to look for answers is Mario Carneiro's thesis on Metamat...

@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 github.com/digama0/mm0 or the thesis is digama0.github.io/mm0/thesis.p if that seems more convenient.