Re:Some notes on Rust, mutable aliasing and formal verification
by kccqzy on Thursday May 16, 2024 @11:50AM
(#40379813)
Most programmers don't have enough previous experience proving things so this is unnatural for them. It is sadly impossible to require programmers to have been a math major to get them the mental facility to work with these languages.
[ Parent
| on HN ]
Re:Some notes on Rust, mutable aliasing and formal verification
by trealira on Thursday May 16, 2024 @03:38PM
(#40382270)
At my university, all majors of computer science have to take a course in discrete math, which involves writing a couple different types of math proofs using proof by induction (including strong induction) and proof by contradiction. However, that was the only class I've ever taken where I've had to write proofs regularly.
Anyway, I think that, at a minimum, at least one class like that should be part of every CS major's education, if it isn't already. That way, proofs are less intimidating, and things like Coq and Isabelle/HOL are less intimidating.
Re:Some notes on Rust, mutable aliasing and formal verification
by kccqzy on Thursday May 16, 2024 @04:19PM
(#40382663)
I agree with you, but the ship has sailed to retroactively require all programmers to have such experience. Also, the typical introductory discrete math course likely doesn't require writing proofs in a language precise enough to be formalized. I would think that we need at least one more introductory course to logic (first order logic, Peano axioms) and an introductory course to type systems (structural induction, progress and preservation, etc).
Re:Some notes on Rust, mutable aliasing and formal verification
by trealira on Thursday May 16, 2024 @04:39PM
(#40382830)
We also learned some first order logic, enough to write the proofs in formal language, though we didn't learn anything about type systems.
You're probably right about the ship having sailed, though. It's probably harder to get people to learn new things when they haven't been in school for a long time.