by sunshowers · 6d ago · 0 comments
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.
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.