← e4cb0224ca42 · e521d16d403e →

e51349aef7b1

Three equal square panels are separated by full color-5 columns. Crop A, B and C to their nonzero bounding boxes; choose the first transform in identity/rot-cw/rot-180/transpose/flip-lr/flip-ud that maps binary(A) to binary(B); apply it to C and recolor every foreground cell with B's color. A four-profile schedule includes two ambiguous first-match cases and independently translates A and B, refuting uncropped-panel matching.

analogycolor remappingtransform inference

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).

Reference rule (Racket)

(rule!
  (let ((dummy 0))
    (define (split-panels grid)
      (let ((seps (filter (lambda (c) (all? (lambda (r) (= (at grid r c) 5)) (range 0 (rows grid))))
                          (range 0 (cols grid)))))
        (let loop ([remaining (append seps (list (cols grid)))] [start 0] [panels (list)])
          (if (empty? remaining)
              (reverse panels)
              (let ((stop (first remaining)))
                (loop (rest remaining) (+ stop 1)
                      (if (> stop start) (cons (subgrid grid 0 start (- (rows grid) 1) (- stop 1)) panels) panels)))))))
    (define (transform-code grid code)
      (cond [(= code 1) grid]
            [(= code 2) (rotate-cw grid)]
            [(= code 3) (rotate-180 grid)]
            [(= code 4) (transpose grid)]
            [(= code 5) (flip-lr grid)]
            [else (flip-ud grid)]))
    (define (binary grid)
      (grid-from-fn (rows grid) (cols grid) (lambda (r c) (if (= (at grid r c) 0) 0 1))))
    (let* ((panels (split-panels g))
           (a (crop-to-content (first panels)))
           (b (crop-to-content (second panels)))
           (c (crop-to-content (third panels)))
           (code (let ((hit (find-first (lambda (t) (equal? (transform-code (binary a) t) (binary b)))
                                        (list 1 2 3 4 5 6))))
                   (if hit hit 1)))
           (dst (first (filter (lambda (v) (not (= v 0))) (grid-colors b 0))))
           (tc (transform-code c code)))
      (grid-from-fn (rows tc) (cols tc)
        (lambda (r c) (if (= (at tc r c) 0) 0 dst))))))

Provenance

Generator
generators/e51349aef7b1/generator.py
Notes and decisions
generators/e51349aef7b1/notes.md
Review label
reviewed_safe
Generator SHA-256
cc984e2ae59660958226e10cf9cf898649bdae2a04b288202c8bbe92ee110c74
Rule hash
cb2d64bc2f44
Sources
bank:dc02f6f7c147
Lesson seeds
20261108, 20261109, 20261110, 20261111, 20261112
Reproduce lesson 1
arcpuzzles generate e51349aef7b1 --count 1 --seed 20261108 --test 1