← ce3c0854174d · ce40117f40f9 →

ce3c6d414140

A canonical-size zero-background grid contains one or two isolated, monochrome, hollow right-slanting parallelograms. For each object, keep the cells on its bounding-box bottom row or rightmost column fixed; shift every other object cell one column right.

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! (lambda (g)
         (let* ((h (rows g))
                (w (cols g))
                (objs (objects-8 g 0))
                (stays (cellmap g
                                (r c v)
                                (let ((orig v))
                                  (if (zero? orig)
                                      0
                                      (let ((my-obj (find (lambda (o)
                                                            (for/or ((cell (obj-cells o)))
                                                                    (and
                                                                      (= (fst cell) r)
                                                                      (= (snd cell) c))))
                                                          objs)))
                                        (if my-obj
                                            (let ((bb (obj-bbox my-obj)))
                                              (if (or (= r (nth bb 2)) (= c (nth bb 3)))
                                                  1
                                                  0))
                                            0)))))))
           (cellmap g
                    (r c v)
                    (let* ((orig v)
                           (shifted (if (and
                                          (> c 0)
                                          (!= (at g r (- c 1)) 0)
                                          (zero? (at stays r (- c 1))))
                                        (at g r (- c 1))
                                        0))
                           (is-stay (and (!= orig 0) (= (at stays r c) 1))))
                      (cond (is-stay orig) ((!= shifted 0) shifted) (else 0)))))))

Provenance

Generator
generators/ce3c6d414140/generator.py
Notes and decisions
generators/ce3c6d414140/notes.md
Review label
reviewed_safe
Generator SHA-256
87b4b461605597ab7fc61d8c02f3c21043b930730165c6afc283421903e50244
Rule hash
e5b989176419
Sources
training
Lesson seeds
20261108, 20261109, 20261110, 20261111, 20261112
Reproduce lesson 1
arcpuzzles generate ce3c6d414140 --count 1 --seed 20261108 --test 1