To reassure you: you got it right, Lean is a formal language to describe proofs which makes testing and reviewing way easier.
That's how these crazy, awesome maths people were able to say "most likely correct" so fast for a proof that, if printed, would be 250.000 pages long!
Basically it allows very easy checking of "which assumptions were made?" and "what's the precise definition of the problem" and things like this.