Answer the question
In order to leave comments, you need to log in
Mathematically proven security of Rust - how is it?
Hello.
Recently I saw a maxim, they say, "Rust's security has a mathematical justification." Can anyone suggest what is it about?
Answer the question
In order to leave comments, you need to log in
To quote humbug from the comments on a recent article :
Specifically, https://people.mpi-sws.org/~dreyer/papers/rustbelt... formally proves that Rust's type system, ownership, borrowing, etc. are correct. It is proved that the program is secure if it is written in a secure subset of Rust. It is proved that a program is safe if it contains unsafe inclusions in which the programmer did not make a mistake, UB.
In addition, the RustBelt project is currently formally verifying the std library, but full verification takes time. Therefore, the library is checked piece by piece. Yes, 2 errors were found and fixed in the unsafe code (which shows that the guys were doing their job), nevertheless, all these threads, mutex, Arc / Rc are formally safe.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question