News for hackers. Stuff that matters.
Re:Translation of the Rust's core and alloc crates to Coq fo... by clarus on Thursday May 16, 2024 @05:47AM (#40376641)
I should add that for pointers to immutable data, we can translate them to immutable values on the Coq side. Thus for Rust code written in a purely functional way (using only immutable data structures) the translation is almost one-to-one with Coq, that is to say the same code up to syntactical differences and the verbosity of our monad that behaves like the identity monad in that case.

Thus we can provide a path for people who are ready to sacrifice performance for proofs. I guess that immutable Rust is simpler to verify with the other systems too.

Re:Translation of the Rust's core and alloc crates to Coq fo... by xavxav on Friday May 17, 2024 @05:48AM (#40388130)
> I guess that immutable Rust is simpler to verify with the other systems too.

I don't think that's the case (it's not harder either). The type system of Rust makes handling mutability fairly trivial in verification, in fact it could be translated to immutable code in a continuation monad like the Tardis monad from Haskell I think.