Bend: Force an AI to mathematically prove its code has no bugs
Added · Updated
Made by BendLang
View profile on GitHub (opens in a new tab)Bend is a new programming language built around the idea that AI-written code should come with a checkable proof, not just a plausible-looking diff.
You write rules in a file called LAWS.bend describing behavior your program must never violate, and the compiler refuses to accept any change — AI-written or not — unless it can mathematically verify those laws still hold. The language also compiles to run automatically in parallel across every CPU core it finds, and across GPU cores as well, with no threads or locks to write by hand.
What it does
The compiler treats a LAWS.bend file as a contract: any edit to the program, whether made by hand or by an AI agent, has to come with a proof that the stated laws still hold, checked automatically in under a second even for programs that would take other proof assistants minutes. Because the language has strong types, purity (functions cannot have hidden side effects) and linearity (values are used in a controlled, trackable way), the compiler can also automatically split independent work across every CPU or GPU core available, without the programmer writing any parallel code by hand.
You could use it to…
- Force an AI agent to prove a rule can't be broken
- Let code split itself across every CPU or GPU core
- Mathematically check a program change in under a second
Can I use this?
You'll need A terminal and the Bend compiler · Setup needed
Worth knowing This is a new, unconventional language with its own syntax and proof system, not a drop-in addition to an existing codebase, so adopting it means rewriting the relevant code in Bend. Formal verification proves your stated laws hold, not that the program is free of every other kind of bug. Apache-2.0 licence.
Why it's here
Not trending this week
Last seen on the GitHub trending list on 28 September 2026. It stays on BuildTube so you can still find it.
- 24,900 people have starred it on GitHub.
Numbers checked on 8 November 2026; not refreshed since.
Behind it
View sourceBuildTube has not run or verified this project. Everything above is written from what the creator published.
Made this?
Quick questions
- What is Bend?
- The compiler treats a LAWS.bend file as a contract: any edit to the program, whether made by hand or by an AI agent, has to come with a proof that the stated laws still hold, checked automatically in under a second even for programs that would take other proof assistants minutes.
- What can I use Bend for?
- Force an AI agent to prove a rule can't be broken; Let code split itself across every CPU or GPU core; Mathematically check a program change in under a second
- Can I run Bend on my computer?
- It runs from a terminal on your own computer.
- What do I need to use Bend?
- A terminal to install the compiler via a curl script, and willingness to write or translate the relevant program into Bend's syntax.
- What license does Bend use?
- Apache-2.0 licence.
More from this week
- NVKE Run managed Kubernetes clusters on your own NVIDIA GPU machines
Set up a service that creates and manages separate Kubernetes clusters on your own NVIDIA GPU servers.
- agent-desktop Let AI agents read and click desktop apps
For developers building computer-use agents: agent-desktop lets an AI agent read and operate desktop apps on Mac, Windows or Linux from a command line.
- Auto-Ontology Give AI agents checked business meanings for your database
Help AI agents answer questions about company databases using reviewed definitions and SQL, with each answer showing its steps.
Explore by topic
Post this
Download share imageFor makers
Made this? Show it’s on BuildTube — add the badge to your README or embed the card on your site.
README badge (Markdown)
[](https://buildtube.app/p/gh-bendlang-bend/)Embed card (HTML)
<iframe src="https://buildtube.app/embed/gh-bendlang-bend/" width="560" height="240" style="border:0;max-width:100%" loading="lazy" title="Bend on BuildTube"></iframe>