The need for a formally verifiable mainstream programming language
7 points by florianhartung
7 points by florianhartung
There's an Ada forum topic from yesterday about why Ada's verifiable SPARK subset isn't being brought up in the same discussions as Lean and TLA+.
I have no formal methods training and have written verified programs in Ada/SPARK. It doesn't have true liquid or refinement types, but subtype predicates are super easy to understand and use. Verification runs off open source tooling (GCC/GNAT/Why3) and it plays super nice with LLMs.
earlier this month someone at our local functional programming group made the case that , well, lean itself is a perfectly serviceable general programming language!
Or at least the language itself has the right trappings. My impression is lots of the libs are still in the “lots of obvious and missing stuff” phase
F* extracting to OCaml is crazy good. It has both SMT backed refinement types and dependent types. There’s ADA as well.