Atelier des rouesLab FR

Calendars sharing a common factor

0/4 Known result or no established contribution AI-assisted literature assessment · one reading

I split dates by residue modulo the common factor, then count compatible dates within each fiber. This is a direct application of generalized CRT compatibility and periodic-set representation: Fraenkel treats the generalized theorem, and Bettini, Mascetti, and Wang treat calendar expressions as periodic sets. The 12, 18, and 30 example is a useful check, but does not establish a new lemma or faster method. I would compare larger instances with direct CRT enumeration and state the factorization conditions precisely.

New proof of the generalized Chinese Remainder Theorem — A. S. Fraenkel · Supporting Temporal Reasoning by Mapping Calendar Expressions to Minimal Periodic Sets — Claudio Bettini, Sergio Mascetti, and X. Sean Wang

How I rate results

APP059 · XII

My contribution and its control

I split by residue modulo the common factor and count compatible times within each fibre. For periods 12, 18 and 30, I recover all 39 slots per joint period of 180.

After extracting the ZIP I run python experience/temoin_xii.py.

Limits and next comparison

The remaining factors must be pairwise coprime. I will test which fibres and words change after an update, using scanning as a control.

Prior work

Chinese remainder theorem

Historical identifiers · A26

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

Historical results — A26 · A calendar for every common-factor fibre, XV-A02 · Sharing bisections, XVI-A02 · Exact selection using anchors

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.