Skip to content

LEN Book

Most of what we know, we know because somebody said so. A page states that a sorting routine is correct, that a customer belongs to a segment, that an order is never placed twice. The statement is useful, and it is also the end of the trail: nothing on the page says what it was based on, who checked it, or whether it would still hold after last week's change.

LEN is a language for the part that is usually missing. In it we say what exists and what is claimed about it. We say what a claim means, in a logic or in a programming language. We say what work would settle it: a proof, a test run, a measurement, a person's judgment. Then a command does the work and records the result beside the thing it is about, together with what the result rested on. When one of those inputs changes, the result is marked stale, and the work is listed again.

The language keeps apart things that are easy to run together. A claim is not a fact. A statement of what a claim means is not evidence for it. A test that passed is evidence, and a proof is a proof, and neither is the other. What counts as true depends on where the question is asked: a logic has two truth values, and a body of evidence that may conflict or be missing needs four.

The book has three chapters. Read them in order on a first visit.

Following along

Install , then check any program in the book:

len check club.len

A command that finds nothing wrong prints nothing and exits with 0.

The three chapters

  1. The language. Its constructs, and the three things they keep apart: what exists, what it means, and what is wanted. Meaning is given in a context, and a context is either a logic or a programming language. This is where code and logic meet: both are languages in which one claim can be stated.
  2. Verification by design. Requirements harder than a single fact, taken from software, and established two ways: by a proof in a logic, and by a program with its tests. The running example is an order that must be placed once, however many times the request arrives.
  3. Advanced reasoning. LEN inside a knowledge base. HyperMarkdown vaults hold the cards and the records, HQL reads them, and extensions bring in other reasoners: provers, test runners, models and people who judge. This chapter covers the life of a result: recorded, relied on, stale, revised.

What works today

The book separates the language as built from its design, and each page says at its head which it describes. On 2026-11-30:

Chapter State
1. The language the ontology and modules are checked; contexts and goals are parsed and name-checked; a claim in a Horn context is proved by len plan and len apply
2. Verification by design the requirements can be stated and checked; no backend proves them or runs their tests yet
3. Advanced reasoning records are written, one for each claim; the rest is design

What works today has the full table. One section of the first chapter is written so far: A first ontology.