← 629ec8fd452e · 6347dcb736b5 →

630d6cc550e4

Eight colored cells around 3x3 orange-centered block rotate clockwise.

parametric family

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))
                (blocks (filter (lambda (p) p)
                                (for*/list ((r (range 0 (- h 2))) (c (range 0 (- w 2))))
                                  (and
                                    (and
                                      (!= (at g r c) 7)
                                      (= (at g (+ r 1) (+ c 1)) 7)
                                      (!= (at g r (+ c 1)) 7)
                                      (!= (at g (+ r 1) c) 7))
                                    (list r c)))))
                (src (lambda (dr dc)
                       (cond
                         ((and (zero? dr) (zero? dc)) (list 0 2))
                         ((and (zero? dr) (= dc 1)) (list 1 0))
                         ((and (zero? dr) (= dc 2)) (list 2 2))
                         ((and (= dr 1) (zero? dc)) (list 2 1))
                         ((and (= dr 1) (= dc 2)) (list 0 1))
                         ((and (= dr 2) (zero? dc)) (list 0 0))
                         ((and (= dr 2) (= dc 1)) (list 1 2))
                         ((and (= dr 2) (= dc 2)) (list 2 0))
                         (else (list dr dc))))))
           (reduce (lambda (acc blk)
                     (let* ((r0 (first blk))
                            (c0 (second blk)))
                       (reduce (lambda (g1 dr)
                                 (reduce (lambda (g2 dc)
                                           (if (and (= dr 1) (= dc 1))
                                               g2
                                               (let* ((s (src dr dc)))
                                                 (set-cell g2
                                                           (+ r0 dr)
                                                           (+ c0 dc)
                                                           (at g
                                                               (+ r0 (first s))
                                                               (+ c0 (second s)))))))
                                         g1
                                         (list 0 1 2)))
                               acc
                               (list 0 1 2))))
                   g
                   blocks))))

Provenance

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