Skip to content
docs
Arxo ↗

nb-01 solutions — First permit: facts, a rule and a question

For LLMs3 sections
← Back to lessonChapter 01 / 25 · Beginner · Worked solution

Setup: vehicle_registered(ann) asserted, resident(ann) not asserted. Question: status of truth(permit_eligible(ann)) under the probe program.

NEITHER. The strict rule needs both conditions; with resident(ann) missing it does not fire, and nothing else supports or denies permit_eligible(ann) — symmetric to the resident-without-car case in the article. This is unknown, not a refusal (full story in nb-02).

Append to /tmp/nb01-probe/probe.lawtest (probe program unchanged):

Arxo Law
test "car without residency is unknown" {
given {
context { legal_time @2026-03-01; decision_time @2026-03-01T09:00:00Z; knowledge_time @2026-03-01T09:00:00Z; timezone "UTC"; }
assert "vehicle-ann": vehicle_registered(entity_ref("urn:demo:probe:ann")) { origin case_input; }
}
evaluate truth(permit_eligible(entity_ref("urn:demo:probe:ann")));
expect truth_status == NEITHER;
}

Command:

Terminal
law engine test /tmp/nb01-probe/probe.lawtest --program /tmp/nb01-probe/probe.law

Observed result (2026-10-02, with the article’s two base tests present):

Output
test PASS: resident with a car is eligible
test PASS: resident without a car is unknown
test PASS: car without residency is unknown

(A fourth probe test, asserting the conclusion fires no rule, fails as designed — applied(urn:demo:probe#PermitEligibility): в документе нет — demonstrating the article’s typical-mistake section.)

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

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