← 865e48425b05 · 86af5978a32a →

866b956f2402

Stable downward gravity in each segment separated by fixed color-8 walls.

order preservationsegmented gravitywall semantics

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 g)) ((c (in-range (cols g)))) (let loop ((start 0) (acc out)) (if (>= start (rows g)) acc (let find-end ((end start)) (if (and (< end (rows g)) (not (= (at g end c) 8))) (find-end (+ end 1)) (let* ((vals (filter (lambda (v) (not (member? v (list 0 8)))) (map (lambda (r) (at g r c)) (range start end)))) (cleared (for/fold ((a acc)) ((r (in-range start end))) (set-cell a r c 0))) (with-vals (for/fold ((a cleared)) ((v (in-list (reverse vals))) (i (in-naturals))) (set-cell a (- end 1 i) c v))) (with-wall (if (< end (rows g)) (set-cell with-vals end c 8) with-vals))) (loop (+ end 1) with-wall)))))))))

Provenance

Generator
generators/866b956f2402/generator.py
Notes and decisions
generators/866b956f2402/notes.md
Review label
reviewed_safe
Generator SHA-256
bd98b7da7022baec112397ebe048fb34b09625d9665f8967a4ff0fe98bab80b1
Rule hash
7cf1bdb14040
Sources
bank:01130745873d
Lesson seeds
20261108, 20261109, 20261110, 20261111, 20261112
Reproduce lesson 1
arcpuzzles generate 866b956f2402 --count 1 --seed 20261108 --test 1