You are right that Lean isn't great in this respect, and people are working on proof formalisations that are less prone to bugs.
You are right that Lean isn't great in this respect, and people are working on proof formalisations that are less prone to bugs.