← d172afae0ee5 · d19732b92d4a →
d185ceed5cc1
Rows contain independently placed color-8 walls and ordered colored pebbles. Within every maximal non-wall segment, the canonical rule packs pebbles rightward while preserving their left-to-right order.
parametric familylocal gravityorder preservationsegmentation by walls
Generated by the released generator before publication; every output was computed by its Racket reference rule. White outlines mark the cells the rule changed. Lesson check:
refuted: a demonstration contradicts the rival. survived_all: it fits every demonstration and also gives the intended answer, so it cannot mislead here. ambiguous: it fits every demonstration but answers the query differently. Names are as declared by the generator; a declared shortcut is not guaranteed to fit the original pairs (see the paper’s Limitations).
Original task pairs
From the source task; the reference rule must reproduce them.
Reference rule (Racket)
(rule! (let ((dummy 0)) (for/fold ((out (empty-grid (rows g) (cols g) 0))) ((r (in-range (rows g)))) (let loop ((c 0) (acc out)) (cond ((>= c (cols g)) acc) ((= (at g r c) 8) (loop (+ c 1) (set-cell acc r c 8))) (else (let find-end ((end c)) (if (and (< end (cols g)) (not (= (at g r end) 8))) (find-end (+ end 1)) (let* ((vals (filter (lambda (v) (not (= v 0))) (map (lambda (cc) (at g r cc)) (range c end)))) (write (- end (length vals))) (next (for/fold ((acc2 acc)) ((v (in-list vals)) (i (in-naturals))) (set-cell acc2 r (+ write i) v)))) (loop end next))))))))))
Provenance
- Generator
- generators/d185ceed5cc1/generator.py
- Notes and decisions
- generators/d185ceed5cc1/notes.md
- Review label
- reviewed_safe
- Generator SHA-256
- 77ecaed15d25d11dba9d95a1857f98a28f229b4ad3023f69da354b874ed210de
- Rule hash
- a1ebff603893
- Sources
- bank:889fa9012eb1
- Lesson seeds
- 20261108, 20261109, 20261110, 20261111, 20261112
- Reproduce lesson 1
arcpuzzles generate d185ceed5cc1 --count 1 --seed 20261108 --test 1