← d02691ffb818 · d07c7972d183 →

d04a3e7210f3

Select the first singleton control in priority order 2,3,4,6; apply identity, clockwise rotation, top-bottom reflection, or 180-degree rotation to the largest blue component; translate it by vector 7->9; and stamp its empty in-bounds landing cells cyan.

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!
  (let ((dummy 0))
    (define (rot90 cells)
      (let ((h (+ 1 (apply max (map first cells)))))
        (normalize-cells (map (lambda (p) (list (second p) (- h 1 (first p)))) cells))))
    (define (rotate cells k)
      (let loop ([i 0] [cur (normalize-cells cells)])
        (if (= i (modulo k 4)) cur (loop (+ i 1) (rot90 cur)))))
    (define (reflect-h cells)
      (let* ((norm (normalize-cells cells))
             (h (+ 1 (apply max (map first norm)))))
        (normalize-cells (map (lambda (p) (list (- h 1 (first p)) (second p))) norm))))
    (define template-obj (first (sort (filter (lambda (o) (= (obj-color o) 1)) (objects g 0))
                                      (lambda (a b) (> (obj-size a) (obj-size b))))))
    (define control (first (filter (lambda (color) (= (length (find-color g color)) 1)) (list 2 3 4 6))))
    (define shape (cond [(= control 2) (normalize-cells (obj-cells template-obj))]
                        [(= control 3) (rotate (obj-cells template-obj) 1)]
                        [(= control 4) (reflect-h (obj-cells template-obj))]
                        [else (rotate (obj-cells template-obj) 2)]))
    (define start (first (find-color g 7)))
    (define finish (first (find-color g 9)))
    (define dr (- (first finish) (first start)))
    (define dc (- (second finish) (second start)))
    (for/fold ([out g]) ([p (in-list shape)])
      (let ((r (+ (obj-r1 template-obj) dr (first p)))
            (c (+ (obj-c1 template-obj) dc (second p))))
        (if (and (in-bounds? r c (rows g) (cols g)) (= (at out r c) 0))
            (set-cell out r c 8)
            out)))))

Provenance

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