Bike Trip Planning

What this is?

One-file, pure JS + JSON route-planning demo for bike trips using ARC: AnswerReasonCheck.

  • Data — trips, segments, tags (hilly, no-bike-lane…), observations (rain, wind, construction), preferences.
  • Policies — declarative JSON rules (if atoms, optional "not": true negations ⇒ then atoms).
  • Answer — only the newly derived facts (keeps strongest trip priority).
  • Reason Why — mathematical-English templates with bound variables.
  • Check — ≥10 JSON assertions against the full fact set.
  • Trip Plan Summary — per-trip priority & tasks (chooses strongest priority).

Engine: small forward-chainer with unification, subclassing (subClass), transitive partOf, segment→trip observation mapping, and negation-as-failure for "not": true.

Data (JSON)

Policies (declarative JSON rules)

Checks (JSON)

Controls

Answer (newly derived facts)

computing…

Reason Why (mathematical English)

(click “Run ARC”)

Check

computing…

Trip Plan Summary

(run to populate)