ldprov

For C, C++, Rust, TypeScript, Python and olang

Eldprov replaces hoping with proof.

AI agents now write much of the code companies ship, and tests and reviews can’t keep up.

A team writes down in plain words what its program must and must not do, and Eldprov formally proves it for every possible run, or says it can’t. The same promise language covers security (“customer data never reaches the internet”, “this token never reaches a file”) and correctness (“this function returns exactly what its specification says”).

Runs on your own machines and in your CI, on Linux, Windows and Mac. No card, no account.

What you get

Fast AI, with a result you know is safe and correct.

Every proof is generated by one program, checked by a second, and tied to the exact program that gets shipped. It all runs offline. The promises can be written by engineers, or by an AI agent of their own.

For that, Eldprov runs as a local development server that all the team’s agents connect to. The agents writing the specification work from the requirements alone, and the server never shows them the code, while separate agents write the program. When a coding agent needs something new, it asks the specification agents through the server, and they define it before anything is built. The server checks every change and accepts nothing until every promise is proved. So AI can build fast, and the team still knows the result is safe and correct.

What it proves

Your data stays where you say. The results are right.

Tests show that a program worked on the cases someone tried. Eldprov proves that it works on all of them. You state what a function must and must not do, and Eldprov proves the code does it, or shows you the input where it does not.

It keeps your data safe

C, C++, Rust, TypeScript, Python and olang

  • The program never uses the network, never starts other programs, never loads code and never deletes files.
  • The contents of a named file never reach the internet.
  • A password or key in a variable is never written to a file or printed, and reaches only the places you list: one folder, this machine, the terminal.
  • A module never writes to a particular file, and the program writes only inside one folder.
  • What the microphone, camera or clipboard picks up never reaches the network.
  • Nothing is sent before the encrypted connection is set up.

And it computes the right results

C, C++, Rust and olang · sorting proofs in olang

  • A sort hands back the list in order, with exactly the same items, for lists of any length.
  • A sum, a smallest or a largest value is exactly right, for lists of any length.
  • A search says found exactly when the value is in the list.
  • A result always stays within its stated bounds, such as never negative.
  • A loop always finishes, and so do functions that call themselves or each other, even when they change the data they are given. Often Eldprov finds why on its own.
  • Floating-point rounding error stays below a stated bound.
  • Every caller in the program gives a function what it requires.
  • A function fails only when you said it may, or never.

A promise counts as proved only when two programs agree: the analyzer, which generates the proof, and the checker, which reads the same input and checks the proof again. Anything less is reported as unknown, with the reason, and never as a pass.

Guarantee files

Promises you can read.

You write what your program must do, and what it must never do, in a guarantee file: short sentences in plain words, each with one exact meaning, read by a fixed grammar with no AI anywhere in between. Eldprov answers every line proved, disproved or unknown. Every line below comes from a file we ran on real code, with the answer Eldprov gives today.

checkin.eldprova check-in tool · 17 lines of olang · both checkers agree on every line
  1. variable checkin.Token
  2. never reaches filesProvedThe access token in this variable is never written to a file.
  3. never reaches terminalProvedNor printed. Not even one bit of it: what the program writes never depends on the token.
  4. program
  5. never file "/home/me/notes.txt" reaches internetProvedThe contents of this file never reach the internet, although the program talks to a server.
  6. writes only files in folder "/var/log"ProvedEvery file it writes is inside /var/log.
  7. never writes file "/etc/hosts"Proved
  8. never deletes filesProved
  9. never starts programsProved
  10. module checkin
  11. never writes file "/etc/passwd"ProvedThis module never writes to this particular file.
sum.eldprovC · lists given as a pointer and a count
  1. function Sum
  2. requires length of params.a is at least params.n and params.n is at least 0
  3. keeps i >= 0 and i <= n and s == sum of x for x in a from 0 to i - 1ProvedWhat the loop holds each round, written once and proved too.
  4. returns sum of x for x in params.a from 0 to params.n - 1ProvedSum adds up every item, for lists of any length.
  5. function SumSkip
  6. requires length of params.a is at least params.n and params.n is at least 1
  7. keeps i >= 1 and i <= n and s == sum of x for x in a from 1 to i - 1Proved
  8. returns sum of x for x in params.a from 0 to params.n - 1DisprovedIts loop starts at 1. Eldprov finds a list that breaks the promise and replays it on the real program.
sort.eldprovmerge sort in olang · every run that finishes · its merge step’s loop facts sit in the same file
  1. function sort.Sort
  2. guarantees params.a from params.lo to params.hi - 1 is sortedProvedThe part of the list it is given comes back in order.
  3. guarantees params.a is reordering of old(params.a)ProvedWith exactly the same items: nothing lost, nothing added, nothing doubled. For lists of any length.
places.eldprovwhere data may go: the internet, the local network, this machine, or an address range
  1. never file "/srv/keys/server.pem" reaches internetNot to any address outside this machine and the local network, and not through a name lookup.
  2. never checkin.Token reaches local networkThe private ranges: 10.0.0.0/8, 172.16.0.0/12, 192.168.0.0/16 and the like.
  3. checkin.Token reaches only network 10.0.0.0/8Any send of it that is not proven to stay inside that range is refused. An address range is written with a mask, as above.
  4. checkin.Token reaches only network 192.168.1.0/24The same for one small subnet. An address that Eldprov cannot read from the program counts as the internet, never as safe.

A bug can only slip through if your short spec and your code make exactly the same mistake, and Eldprov shows you every place they disagree.

Certificates

Proved, or it says so.

Nothing is called tested. Each claim carries one of five grades, and each grade is a precise statement with its own theorem. The certificate lists every assumption the statement depends on: the trusted base.

A verifier answers proved, refuted or unknown. Unknown is never a pass.

GradeKindThe exact statement
AProvedThe claim holds for every input and environment in its domain. No bound and no sampling. The evidence is a machine-checked derivation.
BExhaustive within a boundEvery case up to a stated size was checked, plus named boundary sizes. It says nothing beyond the bound, and says that.
CCovered against a modelEvery obligation of a stated model was met. The certificate names the hypothesis under which that implies correctness.
DStatisticalThe failure rate is below a stated bound at a stated confidence, for a stated usage profile. 299 independent passes give below 1 % at 95 %.
EExamplesSome cases passed. This carries no guarantee, and the certificate says so.

Formal basis

Theorems, with references.

Eldprov rests on the established theory of verification and testing, applied consistently and reported honestly. Every theorem behind a certificate is either proved in a few lines or a published result with its reference.

Where a step rests on an empirical regularity and not a theorem, it is labelled a hypothesis, and the certificate names it. Claims that cannot be decided from a finite run are bounded until they can, or reported as untestable.

Language models

The model is an adversary.

An application that calls a language model cannot trust what comes back. Eldprov quantifies over the model: if a claim holds for the code with every possible model output, it holds for any model, any prompt and any attack on the model.

That turns safety claims into statements about ordinary code, which can be proved or checked exhaustively: never deletes outside the folder, never sends data to a host that is not on the list, never spends more than the budget.

No one can prove that a model's answer is right, and Eldprov does not claim to. What is proved is the code around the model. The quality of the answers themselves is measured, and reported as a measurement with its confidence.

Independence

The builder cannot grade itself.

An agent that writes both the code and its checks verifies the code against its own picture of the world. Eldprov keeps the two apart by design.

  1. Claims from intent

    The specification is a ledger of claims written from what the user asked for. The code is never a source of claims.

  2. Independent checker

    A second agent that never sees the builder's reasoning or tests does the checking. The builder cannot edit its work.

  3. Hostile twins

    The application runs against twins of its platform that inject every failure the platform can produce.

  4. Real machines

    What a twin cannot show, such as installers and native interfaces, runs on real machines.

  5. Checked checks

    The checks are measured too: they must tell the program apart from planted faults.

Two agents, one proof

One agent writes the promises. Another writes the code.

When one AI agent writes both the code and its tests, the tests tend to describe the code it wrote, mistakes included. Eldprov splits the work in two, with itself in between.

  1. The spec agent

    Reads only what you asked for and never sees the code. From your requirements it writes which functions the program will have and what each must and must not do.

  2. The code agent

    Writes the program. It can read the promises but cannot change them. It fixes the code until Eldprov proves every one, or shows the input where one fails.

  3. Eldprov in between

    A small server on your own machine, offline. It gives each agent only what it may see, checks again at every change, and reports what is missing: a promised function never built, or a public function nobody made a promise about.

  4. Questions go to the spec agent

    When the code agent needs a function changed, it asks and the spec agent decides. If they cannot agree in three rounds, the question comes to you.

  5. Green or red

    The pair is green only when every promise is proved, nothing is missing and no question is open. Every change is recorded in a tamper-evident log in your repository.

Pricing

One price per user. No limits on size or runs.

A user is anyone who commits code to a repository Eldprov checks, whether they write it themselves or through their AI agents. Agents and CI runners are not counted as extra users. Running Eldprov in your CI needs a paid licence and is covered by it, with no extra charge per run. Eldprov runs on your machines and in your CI with no internet connection, so your code never leaves them.

Individual

SEK 95 / month
or SEK 950 a year, billed annually
  • One person
  • Non-commercial use only: hobby projects and students. Any commercial use needs Team
  • Every language and every kind of promise

Team

SEK 990 / user / month
or SEK 9 900 per user a year, billed annually, two months free
  • Any number of users
  • Every language and every kind of promise
  • Proofs in your CI, on Linux, Windows and Mac
  • Certificates you can hand to a customer or auditor

Unlimited

from SEK 380 000
a year, billed annually, for everyone in your company, without counting users
  • A company-wide licence with a set end date, checked offline
  • Everything in Team

Setup session

SEK 10 000
one evening with us, once or as often as you like
  • We set Eldprov up in your CI
  • We show your team how to write promises
  • Book one with any plan or during the trial

Want any of these? Ask for a trial, buy licences or book a setup session.

Contact us

Prices in Swedish kronor, excluding VAT. A free 30-day trial licence, with no card or account, for programs up to 250 000 proof units (about one unit per line of C): ask for one below. To buy licences, use the same form.

Contact

A trial, licences or questions?

Ask for a free 30-day trial licence, buy licences or book a setup session. Tell us briefly what you build and we answer by email. You can also write to contact@odysx.se, and ask for the Eldprov specification as a PDF.