> Do SPARK Ada subset first. Then, someone can independently write Why3 prover.
I don't know about Ada, it's a bit heavy on proprietary baggage, but I do vote for Why3 - twice. Creusot is a formal verification tool for Rust that uses Why3.
When I looked at it, WhyML looked like an actual, programming language. Gemini just told me it is. That it also extracts to Ocaml, C, and Java. I'd have to check that for hallucinations.
If programmatic enough, porting WhyML to CakeML might be a worthwhile project.
Also, embedding the intermediate forms in compilers like QBE and Rust. Then, just directly execute them. From there, work like ALIVE in LLVM can go further.
Formal methods may or may not help you. I remember Amazon or another company using TLA+ on a distributed system quickly found a bug that would've taken over two dozen steps to hit.
The concurrency bugs SPIN and TLA+ find also eat tons of debugging time because they are hard to replicate. They're often called heisenbugs for how they're there and not there depending on the observer.
Static analyzers with low, false positives catch tedious or corner-case bugs developers often miss. That already tells you that any formal method that makes software immune to those big classes will also improve quality. SPARK Ada and Frama-C both do that.
I was told before that there was a minimum number of seats one had to buy for around $25,000 which came with a consulting or support contract to sweeten the deal. Many of us would rather drop a few hundred or a thousand for one seat. Do you know id they have per-seat, single-seat pricing for SPARK Pro?
GNAT Pro and SPARK Pro is really aimed at commercial use, projects that need long lifecycles, commercial support and warranty and specific hardware environments with or without certification.
For individual commercial, or non-commercial use, the open source gnatprove has the same features and is available through the Alire package manager and the license is applicable to commercial use. There is a great community at https://forum.ada-lang.io/ where you can post questions.
Is there any reason why the open source tooling would not suit your project?
I think this review is unfair given he doesn't compare those observations to:
1. The number of bugs in unverified programs of similat complexity. By average and good coders. Think CompCert's middle end having no bugs in the evaluation against other compilers.
2. The number of bugs in those vs verification tools in general. If proof and simplicity works, we should see a huge drop vs larger provers or solvers.
3. How much the proof helped prevent bugs in verified software and their severity vs the number and severity of bugs in the provers.
4. An empirical argument where common, coding strategies in battle-tested compilers normally run withiut errors. Therefore, a verified checker implemented with those patterns in a simple, coding style will probably run correctly or with few bugs. But, he just says a large binary checking a large binary which makes both programs sound equally reliable.
So, I support developing and using these tools. We should have them tested on many, small programs and properties like we do static analyzers. Then, use David A. Wheeler's diverse, double compilation on their checkers with GCC and LLVM. Run other verified tools through that.
Because CompCert is proprietary, I wonder if we could ask that team to do the same for CakeML. They could move MLton-style optimizations into the higher passes while moving Rust- or C-like optimizations into the lower passes.
If it runs fast and low resource, it could be a nice testbed for agent architectures. I'm thinking old-school planners, genetic programming, ML techniques, etc.
Especially integrating planners or logic-based approaches with ML models. The old architectures for StarCraft were great at building and micro-managing units but terrible at assessing or adapting to enemy strategy. Hybrid architectures can address that.
Games like yours, esp different styles or requirements, can be used to prove how well the techniques generalize.
that's a good idea, I could definitely see this and games like this as agent benchmarks, like an ARC-AGI but it rotates amongst strategy / long-horizon sandbox games, so we don't have benchmaxxing..
It's a good direction though, I'll take this into consideration in future versions :D
The math can be misinterpreted, misapplied, or not fit reality. That's why high-assurance security mandated a combination of things:
1. English specification of the system and its goals
2. Formal, mathematical specification of the system and its goals
3. Mathematical proof the system met its goals
4. Code implementing that system with a proof, often informal, that the code embodied the informal and formal design.
5. Tests of all functionality to prove the design and code worked.
6. Independent analysis of the above to find flaws in them.
7. If the implementation has concurrency or parallelism, more errors can occur due to that. There were techniques to mitigate it.
Each step found problems in systems made by professionals. Mathematical work and coding both have a long history of errors in their on fields. Combining them increases the likelihood of error.
Math is a social process that involves mental concepts, symbols for them, and discussion about them. It also needs peer review. If you see math in a paper, that's only one part of the process.
Further, in machine learning, we see lots of papers with math that doesn't lead to anything useful. Most papers claiming advances over prior architectures don't pan out in later testing. So, there will be skepticism when people make performance claims like the authors'. The best response is just independent testing.
Author thought nobody was playing chess with a beach-side view?
But God gave us beautiful oceans and intellectually-stimulating games. I'm sure some chess players aren't wasting the opportunity to enjoy both. Now, they're at risk of being taken out!
You raise fair concerns. So, we need to get data to systems they're reading from. But, they can't connect back over those lines.
The safest way to do that is a high-assurance, data diode (one-way link). One builds hardware that, physically and by software, only allows information to flow one day. Many are available commercially.
Sometimes you need proof of acknowledgement of each packet but nothing else. Naval Research Laboratory had The [Network] Pump that allowed only Ack's back and with algorithm to throw off covert, timing channels.
Next, one might want to let people send them requests over an API which they can respond to in limited ways. One can use a high-assurance guard with secure, hardware/software architecture. It uses simplified I/O with a message format that's easy to parse securely.
At this point, I'm also thinking it might be better to use the closed-source, proprietary solutions. The AI's are rapidly scanning the open-source code for vulnerabilities which I'm sure they're not always sharing. They'd be more likely to have attacks on it.
So, don't tell the untrusted model how the guard works, use private models + traditional verification to secure its code, and include both HIDS and NIDS monitoring. Also, make the systems as predictable and boring as possible to make anomalies easier to spot.
Even if it was, covert, channel analysis from the 1980's and 1990's would've taught it to do or prevent that. It was required in all TCSEC-certified systems high, security classes. Many papers were published describing those analyses, including cache channel, which are in their pretraining data.
Most of IT security ignored that work and never used the methods. That's why their syatems can't defend against them. There are hardware and software groups that built countermeasures. They're not mainstream. I don't know if the hardware needed is even commercially available (eg partitioning caches, async & randomized CPU's).
My idea was taking 20+ year old designs that are patent-free, implementing them on any modern nodes that work (esp MOSIS-supported), their performance per watt will probably be better, and just use those. Some of the old designs, like NonStop architecture or MPP clusters, still have amazing benefits.
reply