← ad4e2cd6e3bc · ad5998ad11d6 →

ad4e576b99c4

A square 16-22 grid has a color-1 upper field and color-6 lower field. A connected color-5 rectangular-mask patch is flush with the left or right edge and ends immediately above the split. Move the entire source rectangle to the opposite edge, preserve its mask, and shear rows after the first three one column inward per row; paint the exposed part of the first color-6 row color 9.

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)))
           (begin
             (define bb (bbox-of-cells (find-color g 5)))
             (define r0 (first bb))
             (define c0 (second bb))
             (define r1 (third bb))
             (define c1 (fourth bb))
             (define pw (+ 1 (- c1 c0)))
             (define move-right? (< c0 (quotient w 2)))
             (define br
               (min-of first
                       (filter (lambda (p) (= (at g (first p) (second p)) 6))
                               (grid-positions g))))
             (define final-start
               (if move-right? (- (- w pw) (max 0 (- r1 r0 2))) (max 0 (- r1 r0 2))))
             (define (start-for-row r)
               (let ((shift (max 0 (- r r0 2))))
                 (if move-right? (- (- w pw) shift) shift)))
             (cellmap g
                      (r c v)
                      (cond
                        ((and
                           (>= r r0)
                           (<= r r1)
                           (>= c (start-for-row r))
                           (< c (+ (start-for-row r) pw))) (at g r (+ c0 (- c (start-for-row r)))))
                        ((and
                           (= r br)
                           (if move-right?
                               (< c (+ final-start (- pw 1)))
                               (> c final-start))) 9)
                        ((< r br) 1)
                        (else 6)))))))

Provenance

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