Atelier des rouesLab FR

Intersections of periodic calendars

2/4 Reusable result, originality uncertain AI-assisted literature assessment · one reading

I isolate the claimed optimal spacing of 2d for completing binary schedules with prescribed visits and extendible ends; ABAB is the stated obstruction below the threshold. Lee, Leung, and Margot characterize finite-horizon two-state min-up/min-down trajectories, while this claim asks for a completion criterion from selected dates. It could screen schedules cheaply, but I would first derive it from their model and check the endpoint convention. The other counts are bounded enumerations whose broader use is unclear.

Jon Lee, Janny Leung & François Margot · Min-up/min-down polytopes · Cécile Rottner · Generalized min-up/min-down polytopes · Claudio Bettini, Sergio Mascetti & X. Sean Wang · Supporting Temporal Reasoning by Mapping Calendar Expressions to Minimal Periodic Sets

How I rate results

How long must I keep two delay changes apart to recover the one-change guarantee?

Increasing the minimum dwell removes adversarial scenarios. I can find the first threshold by bisection and check both sides. At period 6 I also sweep every dwell with the exhaustive control. For periods 6, 12, 17 and 31 I recover the guarantee at dwell lengths 1, 15, 318 and 504 on their respective common cycles.

I will test a third change on a cycle small enough to enumerate. AT.EX21.04 · Try the experiment

Keith Conrad · The Chinese remainder theorem

Spacing two schedule changes

I choose a phase before the delay changes twice. What minimum dwell between changes protects joint slots?

I minimize overlap over delays and cuts using prefix sums. I include zero- and one-change cases and compare the small case to direct enumeration. At period 12 and jitter 1 I guarantee two slots with one change. With two changes the guarantee drops to one for h = 1 or 8 and returns to two at h = 16.

I will find the first dwell time that restores the guarantee for each period. AT.EX20.04 · Change the inputs.

Keith Conrad · The Chinese remainder theorem

Intersections of periodic calendars

Choose a robust offset

Which offset guarantees the most slots under integer phase jitter?

I fix the first mask to {0,1,2,8,9,15,16} modulo 24 and the second to {0,1,4,8,9} modulo its period. A pair (a,b) contributes once per joint period if the period gcd divides a−b−d. For offset d I take the minimum count in [d−j,d+j], then maximize over d, breaking ties by the smallest offset.

For periods 24 and 8 with two ticks of jitter, nominal offset 0 may fall to one slot. Offset 6 guarantees two. I checked 882 counts by scanning timestamps.

Jitter is a single constant offset over the joint period. Drift at individual events requires a different model.

Keith Conrad · The Chinese remainder theorem

In the field ZIP, I run python experience/decalages18.py. The matching JSON file contains the reference output.

Change the parameters · AT.EX18.04

APP022 · Synthetic pilot (XI)

Prior work and my contribution

I count compatible ticks in a window. Beyond the coprime pilot I group phases by gcd and count a circular interval within each group.

Limit and next check

Compare update costs and alternative indexes. The current model uses integer ticks and exact periodic masks.

Result

I check three counters against 3,656 windows. With periods 251 and 257 and five phases per mask, eight long windows favour the gcd index and 64 favour the bitmap. These timings start from supplied masks. I will repeat the same queries with local updates.

Prior work

Serre, A Course in Arithmetic, Springer · Lidl & Niederreiter, Finite Fields, Cambridge University Press · Horowitz & Sahni (1974), Computing Partitions with Applications to the Knapsack Problem · Generalised CRT, congruence compatibility

Related results

I flip a left phase and update the words that change. The mutable bitmap beats rebuilding in all 16 updating workloads in my grid.

I link this field to the following results. A calendar for every common-factor fibre

Historical reference identifiers · A13,A19,O04,O05

Querying two periodic calendars

I provide a command accepting two integer masks, query windows and ranks in a JSON file. For periods 12 and 18 I obtain seven slots per 36 ticks and tick 13 at zero-based rank three. I check answers by a separate scan.

Time the full cost on an independent periodic workload. AT.T4 · Bettini, Mascetti & Wang, Supporting Temporal Reasoning by Mapping Calendar Expressions to Minimal Periodic Sets

I extract the Calendars kit and run python creneaux11.py --agenda agenda11.json. I replace the periods, open lists, half-open windows and zero-based ranks in the JSON.

The cost of building and querying a calendar

I fix two pairs of integer periods, masks and three profiles of 256 paired queries. Both methods give the same 1,536 count/rank pairs. On cycles of 420 and 5,063 ticks, materialisation wins on end-to-end time for all six loads. On the second cycle it uses 32,224 Python bytes to build against 3,932 for the implicit counter.

I seek a crossover at long periods and few queries, followed by a domain workload. AT.T5 · Bettini, Mascetti & Wang, Supporting Temporal Reasoning by Mapping Calendar Expressions to Minimal Periodic Sets

How many queries pay for building a calendar?

I measure five alternating repetitions on 60 workloads, two periods, two densities and three profiles. Each query checks prefix and selection. For cycle 420 the table wins at one query in all six profiles. For 5,063 the first tested winning count is four at low density and two at high density for all three localities. I publish medians with and without construction and peak Python memory.

Compare these thresholds with a dated calendar trace and cold-access costs. AT.T6 · Bettini, Mascetti & Wang, Supporting Temporal Reasoning by Mapping Calendar Expressions to Minimal Periodic Sets

Guarantee slots across a delay change

For each offset and cut I independently minimize the counts before and after the cut over integer delays in [−j,j]. Prefix sums give both counts from the same time origin. I inspect every offset of the second calendar. With periods 24 and 31 and j=2, my guarantee falls from 35 meetings to 26 in 744 slots. At offset 7, a change at time 265 from +2 to 0 attains the bound.

Change the inputs · AT.EX19.04 · Keith Conrad · The Chinese remainder theorem

I reproduce · python decalages19.py

Three changes of offset

Can I still guarantee the same meetings if the offset changes three times? On 24 slots with q=6 I allow deviations −1, 0 and +1. I require h slots between switches. I check 6 nominal offsets, 7 dwell times and 4 switch budgets by segmentation and an independent tick-by-tick recurrence.

I guarantee 6 meetings with no switches and 5 with one to three switches allowed, at all seven tested dwell times. I publish attaining adverse schedules for each nominal offset. I will test whether a second availability mask breaks this stability. Change parameters · AT.EX22.04

Keith Conrad · The Chinese remainder theorem

When two switches suffice

Can I rearrange the seven active slots so that a third switch lowers the guarantee? For each nominal offset I count slots at which one of three deviations can suppress a meeting. Each slot is accessible at three of six offsets, so the minimum is at most three. With two switches I can target any three accessible slots in order. I keep a one-slot minimum dwell.

I prove equality of the two- and three-switch guarantees for all 346,104 seven-slot masks. I check the first 500 by recurrence and count all masks by their residue class sizes. I will test the first cardinal at which the saturation bound allows a useful third switch. Try it · AT.EX23.04

Keith Conrad · The Chinese remainder theorem

Eight slots and a third switch

At what first mask size can a third switch lower the guarantee? I choose eight available ticks out of 24. Each tick can be missed in three of six nominal phases. For a third switch to change the guarantee, every phase must have four reachable misses. I then count the changes required by their four shifts in chronological order.

Of 735,471 masks, 33,075 are balanced and a third switch helps the adversary on 30,336. For (0,1,2,3,4,5,6,9), successive guarantees are 6,6,5,4. Eight is the first possible size for unit minimum dwell. I will seek the first size when every shift must last two ticks. Change parameters · AT.EX24.04

Keith Conrad · The Chinese remainder theorem

Any tick can be missed under three of the six phases. If a phase has at most three reachable misses, two switches already let the adversary achieve the minimum reachable count over the six phases: it can target the first three available misses, or all if fewer. Eight ticks have mean reachable count four. Only masks with exactly four misses in every phase remain. I can reach four with three switches, and with two exactly when the four required shifts in chronological order form at most three constant runs. One phase requiring four runs is enough for the guarantee to fall from five to four.

Two ticks of dwell, including the endpoints

How many active ticks are needed for a third shift change to hurt? I require two ticks in every run, including the first and last. I can remove any run with no required miss by extending a neighbour. Thus k already feasible misses require at most k−1 switches. I check the balanced masks using complete paths.

Eight active ticks are necessary and sufficient. Of 735,471 eight-tick masks, 14,986 are sensitive to a third switch, compared with 30,336 for unit dwell. The first mask is (0,2,3,5,6,8,9,11). I will seek a counting formula for sensitive masks at fixed dwell. Change parameters · AT.EX25.04

Keith Conrad · The Chinese remainder theorem

For an extra switch to help, every one of the six phases must allow four misses with three switches. Each tick contributes to three phases, so at eight ticks the mean is four and every phase needs exactly four reachable ticks. I group their required shifts into constant runs. I place each boundary at the earliest time allowed by the previous required miss and two elapsed ticks, then check the next required miss and the final two ticks. This independent computation recovers all 14,986 masks and the first witness.

Counting schedules by residue

Which visit counts account for the benefit of a third switch? I fix visits in the first two classes, propagate the most recent pair around the cycle and verify both closing junctions. The two-tick minimum dwell also applies at both endpoints.

I recover 14,986 sensitive masks across fifteen balanced count vectors. Two vectors contribute 4,077 each. I will test the same recurrence at a different duration. Change parameters · AT.EX26.04

Keith Conrad · The Chinese remainder theorem

Three switches in eighteen ticks

How many eight-visit schedules benefit from a third switch? I fix three six-tick turns and a minimum dwell of two at both ends. I compare residue-class transfer against enumeration of switch times and permitted shifts.

I recover 671 sensitive masks across twelve admissible strata. Eight visits are necessary, and the mask (0,2,3,5,6,8,9,11) attains that minimum. I will seek how the total count varies with the number of turns. Change parameters · AT.EX27.04

Keith Conrad · The Chinese remainder theorem

For the third switch to help, at least four visits must be reachable as misses at every phase. If the limiting value is at most three, any feasible selection of up to three misses is retained with at most two switches by extending the runs carrying them. Each visit is reachable at three of the six phases. With n visits the total is 3n, which must be at least 24, so n≥8. At eight, each phase must have exactly four reachable visits. I enforce two-tick dwell at the endpoints.

Effect of one more switch over five turns

How many eight-visit schedules become possible with a third switch? I fix six slots per turn and a minimum dwell of two. I transfer states across residue triples and check all masks and switches directly over two turns.

Over two, three, four and five turns I count 1, 671, 14,986 and 130,427 additional masks. The short witness occupies slots 0,2,3,5,6,8,9,11. I will look for a recurrence in the number of turns within the smallest witness stratum. Change parameters · AT.EX28.04

Keith Conrad · The Chinese remainder theorem

A polynomial for schedules with two visits per active residue

How many masks gain a solution when I allow three switches? I use residues 0,2,3,5, two visits per residue and minimum dwell two. A fully alternating order of four visits for a neighboring pair needs three switches. I group masks by number of occupied turns.

I give the gain for any n≥2 turns as Σc_h C(n,h), with c₂,…,c₈ = 1,78,930,3875,7170,6076,1928. I check it by two independent methods for two through six turns. I will look for further strata depending only on visit order. Change parameters · AT.EX29.04

Keith Conrad · The Chinese remainder theorem · Stanley · Two poset polytopes

I examine one receiver at a time. Its four visits always use two neighboring residues among (0,2), (2,3), (3,5), (5,0). For (0,2) I split each turn into slots 0–1 and 2–5, for (2,3) or (5,0) into 0–2 and 3–5, and for (3,5) into 0–3 and 4–5. I assign the two required shifts to these blocks, each of length at least two. Between successive visits requiring different shifts I retain one transition in the required direction from this reference schedule. The retained cuts remain at least two slots apart, including at the boundaries. Thus the minimum number of switches equals the number of changes in the four labels. Three always suffice. Two fail exactly when at least one pair alternates. This depends only on occupied-turn order and within-turn residues. Compressing the occupied turns into h positions leaves C(n,h) embeddings per pattern. Since 2≤h≤8 I recover the pattern counts by triangular inversion from n=2 to 8. The trace of the product of four compatibility matrices counts nonalternating selections. I check the coefficients on 9 and 10 turns and check dwell with an independent automaton up to 6 turns.

When rotating a schedule changes its count

I rotate the six-position pattern and compare visit order with the two-slot dwell required at the boundaries. I encode the changes in prescribed shifts and replay a dwell automaton. An independent transfer counts the same schedules. Alternation of two pairs is the classical crossing of two chords.

At four turns and three allowed switches I count 1,296 schedules for the initial pattern and 972 for each of the other two distinct patterns. An order-only test accepts 1,296 in all three cases. I will seek a boundary criterion for the deficit of 324 and its analogues at arbitrary turn counts. Change parameters · AT.EX30.04

Keith Conrad · The Chinese remainder theorem · Stanley · Two poset polytopes · Paul & Rutter (2026) · §3.1

Counting schedules lost at the endpoints

Why do I lose exactly 324 schedules over four turns in some rotations? I place four visits per receiver and require a dwell of at least two slots. I compute the earliest admissible cuts and identify the two possible endpoint conflicts.

For the repeated (2,0,2) pattern with at least three switches allowed I prove zero loss for rotations 0 and 3 and a loss of (n−1)²·C(n,2)² for the other four, for every n ≥ 2. I will seek the first dwell-three pattern with an interior obstruction. Change parameters · AT.EX31.04

Keith Conrad · The Chinese remainder theorem · Stanley · Two poset polytopes · Paul & Rutter (2026) · §3.1

When spacing guarantees the dwell

How far apart must two visits of the same type be to guarantee that I can switch slowly enough? With two labels and extendible endpoints I propagate the earliest possible cut. Returns to the same setting provide the necessary space. I compare the test with an independent automaton.

For any dwell d≥2, spacing 2d between visits of the same label suffices for an arbitrarily long sequence. ABAB at slots 0,1,P,P+1 proves the threshold sharp. Three labels can already obstruct feasibility at three consecutive slots. I will seek a guarantee for three labels by adding a local condition on short alternations. Change parameters · AT.EX32.04

Keith Conrad · The Chinese remainder theorem · Stanley · Two poset polytopes · Paul & Rutter (2026) · §3.1 · Dechter, Meiri & Pearl · temporal constraint networks

I also place this test in the minimum up/down-time model of Lee, Leung and Margot. They characterise the polytope of complete binary sequences. Here I prescribe only selected times, allow both ends to extend, and ask what uniform spacing guarantees a completion. Before claiming novelty I still need to compare the threshold with the projection of their alternating inequalities onto the prescribed times. Lee, Leung & Margot

A conflict that disappears when I remove a visit

Can I check a three-state schedule by testing only small groups of requests? I prescribe repeating ABC labels. Gaps are d slots, except for a first gap of one and a last gap of d−1. Both ends can extend. I compare the whole sequence, a deletion and the three binary groupings.

For all d≥2 and n≥4, the complete schedule falls short by one slot. Any deletion makes it feasible. Returns to a label are at least 2d apart and every binary grouping is feasible. The n deletion witnesses give a facet of the projection onto agreement indicators. I will compare the projected inequality with Rottner’s multistate description by seeking an explicit derivation. Change parameters · AT.EX33.04 · Proof

Dechter, Meiri & Pearl · temporal constraint networks · Lee, Leung & Margot · theorem 4 · Cécile Rottner · Generalized min-up/min-down polytopes

Historical results — A13 · Numerical observer via half-lists, A19 · Conductor-grouped prefixes, A26 · A calendar for every common-factor fibre, O04 · CRT thresholds and arcs, O05 · Weighted contraction, XVII-A03 · Persistent window cache

Download bilingual dossier ↓

Comments

Comments from both language editions appear here.

The discussion is open for reading. I’ll enable submissions once spam protection is configured.