All,
There is a lot of discussion on AI and Formal Methods, specifically around Lean and TLA+ and this is leading to a lot of chatter in social media. However, SPARK is often missing from these types of conversations.
So, the question is, where do we need to mention SPARK more? I submitted two PRs lists I found this week ( GitHub - awesomo4000/awesome-provable: A curated set of links to formal methods involving provable code. · GitHub and GitHub - ai-for-developers/awesome-ai-coding-tools: A curated list of AI-powered coding tools · GitHub ), but am wondering if there are more places that we need to get SPARK listed in.
Also trying to get more ‘getting started with SPARK’ content published in various places, such as How to Use Formal Methods and AI using Open Source Tools (also mentions Rust and Verus).
Looking for input as to what creative thoughts other people have to increase the mindshare of SPARK. Venues to post, lists to update, content to build, influencers to get on-board.
Looking for creative input!
Thanks!
Mark
I’ve been using it to finish a project that been on my list for years, but since the last 12 years has been a total shitshow, my brain can’t deal with the grunt work and dealing with ai not explaining what it’s doing properly or doing the wrong thing and yes I have set up a skill for the project, it’s not as bad, but getting there.
Anyway…I’ve been thinking that we need a distributed local AI people can dip into. And what does Ada have? DSA and @charlie5 just created a new version or two?
It would need to be able to use CPU and GPU depending on hardware, so OpenCL, CUDA, ROCm, OpenACC/MP (@Irvise
), parallel, tasks, etc.
And it should work in a similar way to seti @ home, i.e. don’t take over the machine and kill people’s machines. This way, companies can set up servers, users can run it locally.
I don’t know how feasible it is for it to be free considering how easy it is to run out of credit.
Thanks!
I have been thinking about this for a bit. I think there are 4 options:
-
- Tokens and compute remote
-
- Tokens local, compute remote
-
- Tokens remote, compute local
-
- Tokens and compute local
The ‘remote’ would then need to be sponsored by someone.
The link I provided implements 4 and in the Office Hours I spoke about 1, but in a very limited fashion (needs to be so people dont burn through compute and tokens rapidly).
I am not sure how useful 2. is, if we can make 4 easy enough to use.
Thanks,
Mark
The recent “using LLMs to go at mathematical theorems” by certain AI companies using Lean certainly has a role to play in it being the more trendy choice these days.
Whereas we have Rocq, SPARK, Isabelle among others hardly mentioned or noticed. I feel that too many cooks spoil the broth though, as there will be a fair few low effort contributions and attempts to make Lean do things way outside of its use case.
In the long run after this hype cycle I think SPARK and the others in the formal verification space will stand to benefit, provided we (community and all) can step in and present SPARK as objectively better for writing proofs when you need it in the context of software that can be run instead of just academia.
As for AI usage with SPARK contracts, I think there would need to be more resources as well as experimentation. So far like for many other use cases where LLMs are involved, it can write a contract but it does not mean it will be a meaningful or relevant one.
Personally and I may be in the minority so take it with a pinch of salt. I won’t allow AI (LLMS+existing tooling) to be used on a production codebase unless indirectly via a web browser or an isolated machine. If these tools can be used for small pieces of test code then that might be interesting but otherwise I would just like more content about getting codebases to silver level with the least effort possible. If the world is worried about hackers using AI to find and not disclose bugs then I think Silver level with ease is the ideal that the world is also after in response; atleast during the knee jerk response period. Those who have always taken security seriously aren’t in the least moved by AI bug hunting except perhaps on large/legacy/complex/C code bases. There is also the current money supply amplification affect whose weight needs to be considered. The solved math problem for example reportedly cost $25 million in tokens and no one would have spent that to solve it without an agenda and who knows if hush money was involved. In other words money is being spent on image and not just substance which I’m sure applies to bug hunting to some degree too. The world is made of water and if they want security then they want it with the least effort possible which might suggest Ada or SPARK bronze with performance benefits over Rust. If you are purely thinking of an increased HIS niche such as movement from automotive then that may be a different matter.
I dunno, government funding for research mathematics on the Riemann Conjecture alone has been pretty high. Consider that the average 3-year NSF grant in the United States for mathematics is a half-million dollars; it’s not hard to imagine that at least 50 such grants have been awarded over the last decade alone, never mind the decades prior. And that’s just NSF; in the US you’d likely also find grants from NSA and DARPA that touch on at least some of those problems.