Skip to content
docs
Arxo ↗

Northbridge: from first permit to a complete case

For LLMs9 sections
A resident hands a permit application to a municipal clerk, with the Northbridge bridge and town hall beyond the window.

25 chapters · 6 stages · Worked solutions

Learn Law DSL through the work of a fictional municipality. Start with a resident applying for a permit; follow the case through missing facts, conflicting documents, time limits, obligations, and appeal. Each chapter includes code, observed results, an exercise, and a worked solution.

Read the core route in order. Take the mathematics branch when you need quantities and exact computation; return to the advanced chapters for composition and modeling practice. The illustrations set the scene; the code and observed results establish how the model behaves.

Build a first rule, distinguish unknown from false, handle exceptions, and compute a fee.

A resident searches a household drawer for a missing certificate.
  1. First permit: facts, a rule and a question
  2. Why a missing fact is not a refusal
  3. Exceptions and conflicting rules
  4. The permit fee

Model applicants, registers, documents, editions, deadlines, and legal effects.

A clerk checks a boundary marker against a site plan while a colleague photographs the evidence.
  1. Who counts as a suitable applicant
  2. When the register may stay silent
  3. A document is not yet a proven fact
  4. Which edition applies and when the term expires
  5. From permit to duties and powers

Coordinate a procedure, compare readings, allocate in rounds, and explain a result.

A resident speaks at a lectern during a municipal hearing.
  1. A procedure with parallel checks
  2. Appeal: reading, judgment and precedent
  3. Allocation in rounds
  4. Repeatable norms without copying
  5. Why this answer and what would change it

Work with dimensions, exact bounds, and numeric support limits.

A clerk and engineer measure a triangular plot with a tape stretched between wooden stakes.
  1. Quantities and dimensions
  2. Exact computation and proven bounds
  3. Numeric families and support boundaries

Compose packages and work with presumptions, sources, evidence, queries, and standard functions.

Clerks search different shelves in a municipal archive for sources.
  1. Vocabulary and package composition
  2. Unknown, presumed and deemed: negation, closure, presumptions, fictions, constraints
  3. Sources, time, and outside data
  4. Positions live, files move, readings decide
  5. Expansions you can answer about, answers you can explain
  6. Numbers and the standard library: every figure the 0.2 machine proves

Choose between neighboring constructs, then follow one case through five changes.

A resident beside a car considers an open road and a route blocked by a maintenance barrier.
  1. Neighbor constructs, nine mistakes and three decision tasks
  2. Capstone case: one file, five steps, three worlds

You should be comfortable reading code and running terminal commands. Begin with the first-package tutorial if this is your first encounter with executable rules.

Northbridge is a synthetic, unofficial teaching world. The recorded runs use law 0.1.0, law.core/0.2, and standard library 0.2.0. Later numeric profiles are discussed with their observed support limits; an expected refusal is not a successful calculation.

Before a command, predict the answer. After the run, explain which fact or rule made the difference. Change one condition and predict again. Open the worked solution after attempting the exercise; each chapter links to its corresponding solution.

Documentation for Arxo. Writings — blog.arxo.io.

Anonymous visit counts on stats.arxo.io, no cookies.