← 268b0e9a75b4 · 26ac80084566 →

2692a3e47a66

A 7-30 by 7-30 color-7 grid has one solid square block in each corner. Corner-block colors may occur once, twice, three times, or four times, and block sides range from 1 to 4. For every color occupying at least two disconnected corner blocks, erase those blocks and translate each one inward by its own height and width. Singleton-color blocks remain at their original corners.

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))
                (bg (mode g -1)))
           (reduce (lambda (acc color)
                     (if (= color bg)
                         acc
                         (let* ((objs (filter (lambda (o) (= (obj-color o) color))
                                              (objects g bg))))
                           (if (< (length objs) 2)
                               acc
                               (let* ((cleared (paint-cells acc (find-color g color) bg)))
                                 (reduce (lambda (a obj)
                                           (let* ((height (+ 1
                                                             (- (obj-r2 obj)
                                                                (obj-r1 obj))))
                                                  (width (+ 1
                                                            (- (obj-c2 obj)
                                                               (obj-c1 obj))))
                                                  (dr (if (< (* 2 (obj-r1 obj)) h)
                                                          height
                                                          (- height)))
                                                  (dc (if (< (* 2 (obj-c1 obj)) w)
                                                          width
                                                          (- width))))
                                             (reduce (lambda (aa cell)
                                                       (let* ((nr (+ (fst cell) dr))
                                                              (nc (+ (snd cell) dc)))
                                                         (if (in-bounds? nr nc h w)
                                                             (set-cell aa nr nc color)
                                                             aa)))
                                                     a
                                                     (obj-cells obj))))
                                         cleared
                                         objs))))))
                   g
                   (range 0 10)))))

Provenance

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