← 1216927d148b · 1238481b674b →
1229e88ae0e6
Translate the unique 4-connected nonzero motif so its bounding-box crop is floor-centered in the unchanged grid; preserve every color, hole, and relative cell position.
object_reasoningtranslation
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 (nonzero-cells grid) (filter (lambda (p) (not (= (at grid (first p) (second p)) 0))) (grid-positions grid))) (define (crop-nonzero grid) (let ((cells (nonzero-cells grid))) (if (empty? cells) (list (list 0)) (let* ((bb (bbox-of-cells cells))) (subgrid grid (first bb) (second bb) (third bb) (fourth bb)))))) (define (e8b-paste grid pat top left) (for*/fold ((out grid)) ((r (in-range (rows pat))) (c (in-range (cols pat)))) (let ((v (at pat r c)) (rr (+ top r)) (cc (+ left c))) (if (and (not (= v 0)) (in-bounds? rr cc (rows out) (cols out))) (set-cell out rr cc v) out)))) (let* ((obj (crop-nonzero g)) (top (quotient (- (rows g) (rows obj)) 2)) (left (quotient (- (cols g) (cols obj)) 2))) (e8b-paste (empty-grid (rows g) (cols g) 0) obj top left))))
Provenance
- Generator
- generators/1229e88ae0e6/generator.py
- Notes and decisions
- generators/1229e88ae0e6/notes.md
- Review label
- reviewed_safe
- Generator SHA-256
- cb00482a92a8dd74d160b8ee530caca6fe5041354c0fab6b45f5a733dd261c3e
- Rule hash
- 5e5cb5402934
- Sources
- bank:2eea055c3155
- Lesson seeds
- 20261108, 20261109, 20261110, 20261111, 20261112
- Reproduce lesson 1
arcpuzzles generate 1229e88ae0e6 --count 1 --seed 20261108 --test 1