Li: a programming language for fast, checkable software
TL;DR
Li is a programming language from sail.black research for the hard core of a system: simulations and calculations where errors are expensive and speed matters. Programs carry promises the compiler checks. The latest tagged release is lic 0.2.0 for Linux on x86-64. Li is early, and we do not publish speed comparisons yet.
What problem does Li solve?
Some software has to be fast and trustworthy at the same time. Think of the code inside a physics simulation, a pricing engine, or a scientific pipeline. If it is slow, nobody runs it. If it is wrong, every result built on it is wrong too.
Today teams often pick one side. They write a fast path that nobody can check, or a careful path that is too slow to use. Li is being built so the same program can be both the code that runs and the code you check.
Li targets that hard core. It is not aimed at app screens or everyday web pages. Those parts can stay in the languages teams already use. The first users are engineers and scientists who already write numeric code and want stronger guarantees than a pile of scripts can give.
How do proofs work?
In most languages, checking correctness is a later add-on. In Li, each procedure states what it needs, what it guarantees, and how it finishes. Those lines are part of the program. The compiler `lic` reads them during `lic build`.
The usual names are `requires` (a precondition), `ensures` (a postcondition on the result), and `decreases` (a measure that shows a loop or a call will finish). If Li cannot see that the body matches those promises, the build can fail. You learn about the mismatch before you run anything.
Here is the canonical hello program from the lic repository, `examples/hello.li`:
def main() raises IO -> int
requires true
ensures result == 0
decreases 0
=
print("hello li")
return 0
`requires true` means this entry point may always run. `ensures result == 0` is the promise that the process exits with status 0. `decreases 0` says this procedure does not loop.
A slightly tighter example from the compiler test suite, `li-tests/contracts_verify/discharge_const.li`, promises a concrete value:
def const_seven() -> int
requires true
ensures result == 7
decreases 0
=
return 7
The same suite includes the opposite case: a procedure that returns 1 while promising `result == 0` is a must-fail test. The body and the promise have to agree.
The long-term aim is stronger than a local check. Li can emit proof obligations for Lean 4, whose kernel checks proof terms. The project policy is strict by default: a finished `lic build` should mean the obligations were closed, and any weaker setting should be an explicit downgrade such as `--no-lean-verify` or `--allow-open-vc`.
That kernel path is still partial. A flag that tries extra Lean tactics on a goal is opt-in in lic 0.2.0. Without it, goals can remain open. So we do not say that every binary already is a complete Lean certificate. We say the promises are in the program, the compiler checks them, and the Lean kernel is how we want to finish the job.
How far along is Li?
The latest tagged release is lic 0.2.0, published on 18 November 2026 (Europe/Berlin). It ships a real compiler for Linux on x86-64. In that archive, `lic --version` prints `lic 0.2.0`. Development on the main branch is versioned 0.3.0. There is no `v0.3.0` tag yet.
The v0.2.0 release does not include a Windows, macOS, or arm64 build.
We do not publish speed comparisons with other languages. When we do, they will come with the code and the setup needed to repeat them.
The compiler source is public on GitLab. The license in the repository is GPL-3. A handbook is at docs.lilangverse.xyz.
How do I install Li?
On Linux, the supported self-hosted path is a user-space prefix, by default `~/.local`. That path does not need root. After install, add `$HOME/.local/bin` to `PATH` and run `lic --version`.
You can use the published installer script, which fetches a prebuilt release from GitLab and unpacks it under that prefix:
curl -fsSL https://lilangverse.xyz/cli/install.sh | bash
export PATH="$HOME/.local/bin:$PATH"
lic --version
The same Linux tarball, `lic-0.2.0-linux-amd64.tar.gz`, is attached to the v0.2.0 release. You can unpack it yourself. The prebuilt compiler is dynamically linked against `libz3`, `libzstd`, and `libz`, so those libraries need to be present on the machine.
A from-source build is documented in the repository. It needs LLVM 22, CMake, and Ninja. The from-source path may still ask for administrator rights to install LLVM. That is a known gap. A system-wide install to `/usr/local` exists and is optional.
Windows is not a first-class install in v0.2.0. There is no Windows asset on that release. Some docs still suggest WSL as a way to run the Linux compiler. That is only a workaround. The planned path is a native, admin-free Windows install.
How does Li relate to Librebase?
Librebase is sail.black's open agent platform. lic is meant to stay easy to call from a user-space prefix, so a Librebase host can install and upgrade the compiler without root.
Work on writing agent permission rules in Li and checking them before an agent starts is research. It is described in the multi-agent governance article. It is not a finished Librebase feature.
sail.black also builds scientific software of its own, including the signal healing work. Li is the systems research toward a firmer base for that kind of code, and for products that need stronger guarantees.
What are the limits?
Li is early. The 0.2.0 compiler is a usable tagged release.
Only Linux on x86-64 has a published release binary. The prebuilt file depends on three shared libraries, as noted above. Admin-free Windows support is a stated requirement and is not done.
Proof checking is real and still incomplete. Closing every obligation in the Lean kernel for every program is the target, not a claim we make today. You can also write a promise that is formally tidy and still the wrong idea for the problem. The compiler itself is not a proved program. Trusted I/O sits in a small audited axiom surface.
We have no published, repeatable benchmark comparison against other languages. This article does not report proof-database totals, because we do not have a kernel-checked inventory we are willing to stand behind in public.
What comes next?
The public install plan is recorded in lic issue 101. In short:
Harden the Linux user-space install: no root for the default prefix, a non-root install smoke test, and a from-source path that does not assume sudo for LLVM. Bundle or document the prebuilt library dependencies.
Ship a real Windows compiler, not a stub, and an admin-free user-space install that does not require WSL.
Keep system packages and WSL as optional extras.
Keep lic callable from a user prefix so Librebase stays compatible.
A broader ecosystem roadmap lives in the li-langverse roadmap repository. We will say when a tagged release actually includes a Windows or macOS build, and when we publish benchmarks that others can repeat.
Frequently asked questions
Is Li a replacement for Python or Rust?
No. Li targets the performance-critical core of a system. The rest of an application can stay in the language a team already uses.
Are there benchmarks for Li?
Not yet. We have no published comparison with other languages. When we publish one, it will come with the code and the setup needed to repeat it.
What kind of software is Li meant for?
The hard core of a system: simulations, core calculations, and scientific pipelines where speed matters and errors are expensive.
What does checkable mean for Li?
Each procedure states promises (`requires`, `ensures`, `decreases`) that `lic build` checks. Li can also emit proof obligations for the Lean 4 kernel. That kernel path is still partial, so a successful build is not yet the same thing as a complete proof certificate.
Does Li run on Windows?
Not as a published compiler in v0.2.0. There is no Windows build on that release. A first-class, admin-free Windows install is planned. WSL can run the Linux compiler as a workaround.
Where is the code, and what is the license?
The source is on GitLab. The license in the repository is the GNU General Public License, version 3.
Links
About the author
Julian M. Kleber is a scientist and engineer in Berlin working on chemistry, machine learning and scientific software. ORCID · Google Scholar · LinkedIn · julianmkleber.com
More
Generate molecules in the color you want, screened against EU restriction rules
Can a tiny grid of cells predict an AI agent's next step?
Reeldemo
How we search for better deep learning algorithms
sail.black
How do you stay in control of many AI agents at once?
Reeldemo
How to remove the click in a wavetable loop
Reeldemo
Signal discontinuities matter beyond music
How do bacteria close the rings of antibiotics? A new idea
Can fluorine form triple bonds? A plain-language look
CARATE: teaching computers to read molecules as graphs
CACHE #1: can computers find drugs for a Parkinson's target?
Watching drugs move: Markov models of protein interactions