Skip to content
docs
Arxo ↗

LDC-E4122 — A stage whose round range is empty

For LLMs5 sections

A stage index runs from its lower bound to its upper bound in the declared direction. When the direction contradicts the bounds — ascending from a higher number down to a lower one — the range covers no rounds at all, and there is nothing to execute. The compiler refuses the stage at its index.

Align the bounds with the direction: swap them, or declare the descending direction the bounds already describe.

Arxo Law
language "law.core" version "0.2";
package demo.diagnostics version "0.1.0";
namespace "urn:law:demo:diagnostics";
relation counter(i: Integer) kind institutional;
stage R { index i: Integer from 5 to 1; bind counter index 1; }
Arxo Law
language "law.core" version "0.2";
package demo.diagnostics version "0.1.0";
namespace "urn:law:demo:diagnostics";
relation counter(i: Integer) kind institutional;
stage R { index i: Integer from 1 to 5; bind counter index 1; }

The engine reports this in its own wording:

Output
example.law:6:11: error LDC-E4122: STAGE_DOMAIN_EMPTY: stage "R": direction ascending contradicts bounds 5 … 1 (§111.2 item 1)

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

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