← ed860c0a9107 · edb34dd65185 →

ed98575459d2

A solid color-8 outer frame, optionally crossed by 0-2 full-height vertical walls and 0-1 full-width horizontal wall, partitions a 0-bg grid into rectangular chambers. Six to eight pebbles use every color 2..7, with at least one pebble in each chamber. In every chamber, each column's pebbles compact upward independently while retaining their top-to-bottom order; all color-8 walls stay fixed.

chamber parsinglocal gravitysame-size transform

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)) (define dirs4 (list (list -1 0) (list 1 0) (list 0 -1) (list 0 1))) (define (regions-without-wall grid wall-color) (let loop-pos ((positions (grid-positions grid)) (seen (list)) (acc (list))) (cond ((empty? positions) (reverse acc)) ((or (member? (first positions) seen) (= (at grid (first (first positions)) (second (first positions))) wall-color)) (loop-pos (rest positions) seen acc)) (else (let bfs ((queue (list (first positions))) (seen2 (cons (first positions) seen)) (cells (list))) (if (empty? queue) (loop-pos (rest positions) seen2 (cons (sort cells cell<) acc)) (let* ((cur (first queue)) (nbrs (filter (lambda (p) (and (in-bounds? (first p) (second p) (rows grid) (cols grid)) (not (member? p seen2)) (not (= (at grid (first p) (second p)) wall-color)))) (map (lambda (d) (list (+ (first cur) (first d)) (+ (second cur) (second d)))) dirs4)))) (bfs (append (rest queue) nbrs) (append seen2 nbrs) (cons cur cells))))))))) (for/fold ((out g)) ((room (in-list (regions-without-wall g 8)))) (let* ((cleared (for/fold ((acc out)) ((p (in-list room))) (set-cell acc (first p) (second p) 0))) (cols-in-room (sort (remove-duplicates (map second room)) <))) (for/fold ((acc cleared)) ((c (in-list cols-in-room))) (let* ((rs (sort (map first (filter (lambda (p) (= (second p) c)) room)) <)) (vals (filter (lambda (v) (not (= v 0))) (map (lambda (r) (at g r c)) rs)))) (for/fold ((acc2 acc)) ((r (in-list rs)) (i (in-naturals))) (if (< i (length vals)) (set-cell acc2 r c (list-ref vals i)) acc2))))))))

Provenance

Generator
generators/ed98575459d2/generator.py
Notes and decisions
generators/ed98575459d2/notes.md
Review label
reviewed_safe
Generator SHA-256
2dec769ef0b86be5809bb589af04b56f0786b6d5c2239b8c6ce10a069787eb06
Rule hash
7798fc567577
Sources
bank:9a1b04175c5a
Lesson seeds
20261108, 20261109, 20261110, 20261111, 20261112
Reproduce lesson 1
arcpuzzles generate ed98575459d2 --count 1 --seed 20261108 --test 1