Two libraries negotiate manuscript access across date windows, recurring access days, and usage limits.
temporal-policy-conflicts-le.le · output · proof · check · playground
The question
The Bavarian State Library offers a digitised manuscript with access every 30 days from 1 January 2026 and a cutoff at 31 December 2026. It requires 30 days of actual use and a delay of at least one day. The French National Library requests access on 1 June 2027, on a schedule recurring every 45 days from that date. Its limit is 10 elapsed days and it asks for immediate use. Both libraries state these terms as ODRL constraints. Which terms conflict? Which counteroffers allow an agreement?
Historical background
ODRL 2.2 became a W3C Recommendation in 2018 and supplied terms for dates, durations, and recurrence. In 2026 Mustafa and colleagues proposed a semantics for comparing temporal policies by giving instants and durations separate domains. The manuscript negotiation comes from their Example 2.1. The counteroffers are additional cases for the same checks, including an open duration bound that meets a closed one. W3C, ODRL Vocabulary & Expression 2.2 · Mustafa et al., Sort-Stratified Semantics for Temporal Conflict Detection in ODRL Policies
What we tell eyemind
Each policy states ODRL constraints as an operand, an operator and a value,
as in the paper. Durations are given in days, so P30D is written 30 and
PT0S is written 0. Each operand has a sort. A date time value is read as
an instant: its day number counted from 1970-01-01. The elapsed, metered and
delay operands are read as durations in days. eq, lteq and gteq give
closed bounds, and lt and gt give open ones. A missing bound is
unbounded. Every constraint on an operand, from either policy, takes part in
the comparison. Two intervals are disjoint exactly when an upper bound falls
below a lower bound, or the two meet at a point that one of them excludes.
Mustafa et al., Definitions 3.3–3.5 and 3.10, Theorem 3.11
A time interval recurs from its policy’s start, in both directions. Two
schedules can share a day when the difference between their anchors is a
multiple of the greatest common divisor of their periods. The original
anchors are 516 days apart and the periods have gcd 15, so those schedules
never meet. The revised request starts on 16 January 2026, 15 days after the
offer. Extended Euclid finds a common day at offset 60, and the common
schedule repeats every 90 days. Shared days fall on whole days, so an open
cutoff admits only the days before it. The first shared date in the revised
window is 2 March. A cutoff of lt 2026-03-02 excludes it.
Mustafa et al., Lemmas 3.7 and 3.8
The duration rules first compare each operand on its own. They then check
that metered use and delay can each fit within elapsed time. In the aligned
case, both elapsed limits allow some common values. The offer still
requires 30 days of actual use, and the request allows at most 10 elapsed
days, so there is no joint duration. In the late case every separate
comparison succeeds, but a delay of 11 days exceeds the same elapsed limit.
The brief request adds elapsedTime lt P7D to its limit of 10 days. Seven
metered days would need at least seven elapsed days, which the open bound
excludes.
Mustafa et al., Definition 3.15
This example covers policies that both recur and whose joint window has a start and a cutoff. Without either, the window always contains a shared day. It reports the per-operand verdicts of the paper’s Definition 4.2 for the duration operands, and names the date time, time interval and cross-operand conflicts it finds. The overall verdict is conflict when any conflict is found, unknown when only one policy constrains some duration, and compatible when a first shared date exists and neither applies. Mustafa et al., Definitions 4.2–4.4
What eyemind concludes
| Negotiation | First shared date | Verdict | Why |
|---|---|---|---|
| Paper case | Conflict | Date time, time interval, delay and metered use each give a conflict. | |
| Aligned case | 2026-03-02 | Conflict | The offer needs 30 metered days and the request allows at most 10 elapsed days. |
| Open case | 2026-03-02 | Unknown | Seven metered days fit in the elapsed limit. The request has no metered condition. |
| Agreed case | 2026-03-02 | Compatible | The request now accepts up to eight metered days. Seven metered days, seven elapsed days, and a one-day delay satisfy the duration checks. |
| Cutoff case | Conflict | The first common occurrence falls on the excluded cutoff. | |
| Brief case | 2026-03-02 | Conflict | Seven metered days need seven elapsed days, and the request allows fewer than seven. |
| Late case | 2026-03-02 | Conflict | The requested 11-day delay exceeds the 10-day elapsed limit. |
% query verdicts with scenario negotiations
paper case has temporal verdict conflict.
aligned case has temporal verdict conflict.
brief case has temporal verdict conflict.
late case has temporal verdict conflict.
cutoff case has temporal verdict conflict.
open case has temporal verdict unknown.
agreed case has temporal verdict compatible.
struct('le:answer', 'conflicts', 'negotiations', 'aligned case', 'metered time exceeds elapsed time')
struct('le:answer', 'conflicts', 'negotiations', 'brief case', 'metered time exceeds elapsed time')
struct('le:answer', 'conflicts', 'negotiations', 'cutoff case', 'recurrence outside the window')
struct('le:answer', 'verdicts', 'negotiations', 'open case', 'unknown')
struct('le:answer', 'verdicts', 'negotiations', 'agreed case', 'compatible')
What the proof establishes
The saved proof is checked against the compiled Logic Script program. The checker verifies the denotations, the calendar arithmetic, the bound comparisons, and the search for missing conditions and conflicts. A demonstrated conflict takes priority over an unknown operand. That is why the aligned case has both an unknown metered-time comparison and an overall conflict.
Try it
node bin/eyemind.js examples/temporal-policy-conflicts-le.le
node bin/eyemind.js --explain examples/temporal-policy-conflicts-le.le
node bin/eyemind.js --check-proof examples/proof/temporal-policy-conflicts-le.js examples/temporal-policy-conflicts-le.le
