← b3d7f3a15b3d · b47adc50b675 →

b44c4c938f42

Zero-separated panels each contain a unique-largest colored component and a same-color distractor; largest components are overlaid largest-first with conflict-avoiding shifts on one 8-background panel.

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!
  ;; alt: split by all-zero separators, take each panel's largest non-8 object,
  ;;      then greedily place largest-first on the shared 8-background canvas.
  (let* ((sep-cols (filter (lambda (c) (all? (lambda (r) (zero? (at g r c))) (range h)))
                           (range w)))
         (starts (cons 0 (map add1 sep-cols)))
         (ends (append sep-cols (list w)))
         (spans (filter (lambda (se) (< (first se) (second se))) (map list starts ends)))
         (parts (map (lambda (se) (subgrid g 0 (first se) (- h 1) (- (second se) 1))) spans))
         (out-w (cols (first parts)))
         (shifts (list (list 0 0) (list 0 -1) (list 0 1) (list -1 0) (list 1 0)
                       (list -1 -1) (list -1 1) (list 1 -1) (list 1 1)
                       (list 0 -2) (list 0 2) (list -2 0) (list 2 0)))
         (placed (make-hash)))
    (define (largest-shape part)
      (let ((objs (objects part 8)))
        (if (empty? objs) #f (argmax obj-size objs))))
    (define (inside? p)
      (and (>= (first p) 0) (< (first p) h)
           (>= (second p) 0) (< (second p) out-w)))
    (define (free? cells)
      (and (all? inside? cells)
           (all? (lambda (p) (not (hash-has-key? placed p))) cells)))
    (for ((obj (in-list (sort (filter values (map largest-shape parts))
                              (lambda (a b) (> (obj-size a) (obj-size b)))))))
      (let place ((ss shifts))
        (unless (empty? ss)
          (let* ((sh (first ss))
                 (cells (map (lambda (p) (list (+ (first p) (first sh))
                                                (+ (second p) (second sh))))
                             (obj-cells obj))))
            (if (free? cells)
                (for ((p (in-list cells))) (hash-set! placed p (obj-color obj)))
                (place (rest ss)))))))
    (build-grid h out-w (r c) (hash-ref placed (list r c) 8))))

Provenance

Generator
generators/b44c4c938f42/generator.py
Notes and decisions
generators/b44c4c938f42/notes.md
Review label
reviewed_safe
Generator SHA-256
33ce9d5349070343ba38e5386e00158382d482ba61f5e0683a71c276082f337a
Rule hash
10339930cb51
Sources
augmented, training
Lesson seeds
20261108, 20261109, 20261110, 20261111, 20261112
Reproduce lesson 1
arcpuzzles generate b44c4c938f42 --count 1 --seed 20261108 --test 1