LEAN is a "programming" language for mathematical proofs. In that language, you write out explicitly every step of the proof.
If the proof is correct and it follows logical reasoning, LEAN validates it. Therefore, the proof you wrote in LEAN is correct.
However, it is VERY important to notice that LEAN only validates what you write in LEAN. It cannot prove that your paper is correct. For example, you may put out a paper saying "1+1=3!! Confirmed by LEAN!!!" But then in LEAN you write "1+1=2". Yes, what you wrote in LEAN is correct. However, what you wrote in LEAN is not the same as what you wrote in your paper.
This happened for example with navier stokes. The paper put out by OpenAI did not say the same thing as their LEAN proof.