Groups keyboard shortcuts have been updated
Dismiss
See shortcuts

Formal Verification in Scientific Computing

1 view
Skip to first unread message

Steve Omohundro

unread,
Aug 21, 2024, 6:26:34 PM8/21/24
to guaranteed-safe-ai

Formal Verification in Scientific Computing


Scientific computing is used in many safety-critical areas, from designing and controlling aircraft, to predicting the climate. As such it is important to provide formal guarantees to the numerical results provided by scientific computing, by ensuring that the numerical solutions of differential equations are correct. Our work has focused on providing formally verified numerical solutions for ordinary differential equations, using interactive theorem provers. The results are fully end-to-end, in the sense that they formally prove that the solution computed by the C program is quantifiably close to the real solution of the differential equation. To achieve this, we combine formalization of traditional results from numerical analysis (such as the Lax equivalence theorem), with bounds on iterative methods and floating-point arithmetic, as well as formal C semantics. One challenge of formal verification for scientific computing is to make the formalizations more automatic, and general enough to apply to reasonably realistic scenarios. Another challenge for formal verification is to be relevant to the traditional scientific computing community. Since worst-case bounds are often too conservative in practice, we will discuss ideas on alternate results to formalize. This is joint work with Mohit Tekriwal and Karthik Duraisamy (Michigan), David Bindel and Ariel Kellison (Cornell), Andrew Appel (Princeton), and Geoffrey Hulette (Sandia).

Best,
Steve

Quinn Dougherty

unread,
Aug 21, 2024, 6:36:31 PM8/21/24
to Steve Omohundro, guaranteed-safe-ai
Appell's and kellison's codebases here are currently strong reasons to plan for mechanical engineering stuff to be in coq rather than lean: 

Unless opus 3.5 is good enough at transpiling. 

I haven't seen any numerical analysis projects in lean 

--
You received this message because you are subscribed to the Google Groups "guaranteed-safe-ai" group.
To unsubscribe from this group and stop receiving emails from it, send an email to guaranteed-safe...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/guaranteed-safe-ai/CAOLEBs9X41c9%3DgZuATcohZpiR%3DM%3DmNX%3DKD2RQKEOfh%2BBf%2BbVTQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Steve Omohundro

unread,
Aug 21, 2024, 6:53:12 PM8/21/24
to Quinn Dougherty, guaranteed-safe-ai
Very cool!

There's the "SciLean" library in Lean but it seems to be in an early stage of development:

SciLean: Scientific Computing in Lean


Tyler Josephson's lab  at UMBC is working to formalize various sciences:

Creating “AI Scientists”: Tyler Josephson advances a new field of research through $650,000 NSF CAREER award


AI and Theory-Oriented Molecular Science ATOMS Lab

Here's a course he did on "Lean for Scientists and Engineers", the links to video recordings of the classes work:

Best,
Steve

Steve Omohundro

unread,
Aug 21, 2024, 6:55:33 PM8/21/24
to Quinn Dougherty, guaranteed-safe-ai

Quinn Dougherty

unread,
Aug 21, 2024, 7:12:20 PM8/21/24
to Steve Omohundro, guaranteed-safe-ai
I think scilean is solving a different problem than the projects built on top of flocq and vst. 

Scilean seems to be starting to make it possible to do scientific computing in a type theory, while flocq and vst are big steps toward correctness proofs of the primitives that are actually running on critical systems. 

On one worldview, scilean's impact is greatest if it focuses on being a bare interface to common primitives than come in thru the FFI. Then, high level scientific logic could be proven correct and thru a precondition/postcondition schema gain confidence in the parts that get FFI'd out.

On another worldview, scilean ought to literally provide new primitives, replace blas or eigen or lapack, with proofs in lean replacing decades of battle hardened unit tests. 

The second worldview seems more difficult to support. I roughly consider myself of the first camp. 

Quinn Dougherty

unread,
Aug 21, 2024, 7:13:29 PM8/21/24
to Steve Omohundro, guaranteed-safe-ai
I'm glad to see lecopivo started a docs book for the project! 
Reply all
Reply to author
Forward
0 new messages