A formal proof is a derivation of a proposition in a specified formal language from explicit axioms and assumptions by the system's rules of inference. The rules specify which derivation steps are valid, so a proof checker can verify that a fully formal derivation establishes its stated conclusion under those assumptions.
In Lean, a proposition is represented by a type and a formal proof by a term of that type. The kernel checks the type of the proof term.
For example, a proof of
can be given by a function that takes a proof of
and returns a proof of
. Checking a formal proof establishes
the theorem as expressed in the formal language. Comparing that statement and its
assumptions with an informal mathematical claim is a separate step.