42 karma · joined Apr 2, 2026 (8mo ago) · 11 submissions
2.
The Perfect Storm: Advent of Code, AI and Formal Methods(markhermeling.substack.com ↗)
6 points · by markhermeling · 2d ago · 1 comment
comment 3d ago · link · parent
https://forum.ada-lang.io/t/charity-advent-of-ada-spark-2026...
comment 4d ago · link · parent
Something like this: https://en.wikibooks.org/wiki/Ada_Programming/Representation...
comment 4d ago · link · parent
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?
comment 4d ago · link · parent
https://learn.adacore.com/courses/advanced-ada/parts/data_ty...
It would allow for compiler level protection from writing wrong data into a register.
Anybody know if that is planned for Rust.
comment 1w ago · link · parent
Personally I am having great success using Ada SPARK. The SPARK subset has been greatly enhanced over the past years. I spent yesterday taking existing C repos, translating to SPARK, lifting it to SPARK Silver (absence of runtime errors) and then reporting the findings to the various maintainers. All as a background activity.
Result: integer overflows, typically on boundary conditions, some logic mistakes, again on boundary conditions.
I have not looked into Magmide, but I think the next breakthrough is a combination of something like SysMLv2 to describe architecture and requirements, TLA+ for modeling and formal proofs at the system level and then Lean or SPARK for the implementation.
comment 1w ago · link · parent
The sweet spot for many users is the first. Make sure that the application cannot crash. No array-out-of-bounds read/write, no memory issue on ANY input, formally proven at compile time.
This requires additional work in the program to annotate (in SPARK at leasts) and knowledge from the programmer, which meant that there was a barrier to entry.
Well, LLMs COMPLETELY remove this barrier to entry. You can write the logic and have the LLM add the contracts to get to the proof. This works in most cases.
And then, for truly critical code, you can look at functional correctness as a cherry on top of your cheesecake.
comment 1w ago · link · parent
And the ecosystem is following! There are a lot more new middleware layers, frameworks, operating systems and such being released in Ada over the past few years.
See https://forum.ada-lang.io/ for discussion and pop into the live Community Office Hours that AdaCore hosts (https://www.adacore.com/ada-spark-office-hours) to see what is going on in the space.
comment 1w ago · link · parent
Or, make a lateral step and have a look at SPARK, which has formal methods baked into the language: https://learn.adacore.com/courses/intro-to-spark/index.html
Formal methods gives you 2 parts: - The ability to statically prove the absence of run-time errors. No more panics! - The ability to statically prove functional properties. For example, in a traffic light control system, crossing lanes can never be green at the same time.
This is additional work, _but_ LLMs are fantastic in providing assistance here and in most cases can help you lift your work in an agentic workflow.