The core set of things that, if you assume they are correct, the proof holds.
For a non-Lean example, a memory-safe language like Rust has unsafe code that forms its TCB. Assuming that the unsafe code is correct, safe Rust can't cause undefined behavior.
To be clear, formal verification is both with respect to a trusted computing base, and with respect to a theoretical framework. Any such guarantees from formal verification are contingent on the theorem statement being correct, the implementation of whatever framework you're using being trustable, and the meta-theory being sound.
Rust doesn't actually have a theoretical framework, as far as I'm aware. I don't think that existing work (ex. RustBelt) have come close to capturing the full extent of Rust in practice yet. As such, it's totally possible in principle for safe Rust to have theoretically unresolvable memory safety bugs... although it's pretty obvious that it like, doesn't.
For a non-Lean example, a memory-safe language like Rust has unsafe code that forms its TCB. Assuming that the unsafe code is correct, safe Rust can't cause undefined behavior.