← e934ded59427 · e942ce41cbf5 →

e937c5b85cdd

Orange(7) chamber inside a magenta(6) perimeter frame (11x11-heavy prior, 11..16 overall). Interior: 1..5 crosses (4 in the canonical archetype), each a 5-cell plus in its own non-{6,7} color with one arm extended (arms [1,1,1,2] canonically, [1,1,1,3] as an extension; the realized maximum arm length always equals max_arm_len). For each cross the rule clears the border cell its longest arm faces to 0 and paints the opposite border cell in the cross's color. Placement enforces the canonical collision-free invariant: horizontal-arm crosses occupy distinct rows and vertical-arm crosses distinct columns, so every cross's two border edits land on unique cells. A four-draw cycle contains one strict canonical scene, one free scene with a canonical-morphology prior, and two teaching scenes containing length-3 crosses facing both nearer and farther edges. Three demonstrations refute all three declared rivals under any query holdout.

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)))
           (let* ((hh (rows g))
                  (ww (cols g))
                  (bg 7)
                  (frame 6)
                  (visited (make-hash))
                  (result (make-hash)))
             (for* ((r (range 0 hh)) (c (range 0 ww)))
                   (hash-set! result (list r c) (at g r c)))
             (for* ((r (range 1 (- hh 1))) (c (range 1 (- ww 1))))
                   (let ((v (at g r c)))
                     (when
                       (and
                         (!= v bg)
                         (!= v frame)
                         (not (hash-has-key? visited (list r c))))
                       (let ((cells (list))
                             (color v))
                         (let bfs
                              ((q (list (list r c))))
                              (unless
                                (null? q)
                                (let ((cr2 (first (car q)))
                                      (cc2 (second (car q))))
                                  (cond
                                    ((or
                                       (hash-has-key? visited (list cr2 cc2))
                                       (< cr2 0)
                                       (>= cr2 hh)
                                       (< cc2 0)
                                       (>= cc2 ww)
                                       (!= (at g cr2 cc2) color)) (bfs (cdr q)))
                                    (else (hash-set! visited (list cr2 cc2) #t)
                                          (set! cells (cons (list cr2 cc2) cells))
                                          (bfs (append (cdr q)
                                                       (list (list (- cr2 1) cc2)
                                                             (list (+ cr2 1) cc2)
                                                             (list cr2 (- cc2 1))
                                                             (list cr2 (+ cc2 1))))))))))
                         (let ((best-cell #f)
                               (best-n 0))
                           (for ((cell cells))
                             (let ((nbrs (count-if (lambda (n) (member n cells))
                                                   (list (list (- (first cell) 1)
                                                               (second cell))
                                                         (list (+ (first cell) 1)
                                                               (second cell))
                                                         (list (first cell)
                                                               (- (second cell) 1))
                                                         (list (first cell)
                                                               (+ (second cell) 1))))))
                               (when
                                 (> nbrs best-n)
                                 (set! best-n nbrs)
                                 (set! best-cell cell))))
                           (let* ((cr (first best-cell))
                                  (cc (second best-cell))
                                  (up (count-if (lambda (c2)
                                                  (and
                                                    (= (second c2) cc)
                                                    (< (first c2) cr)))
                                                cells))
                                  (dn (count-if (lambda (c2)
                                                  (and
                                                    (= (second c2) cc)
                                                    (> (first c2) cr)))
                                                cells))
                                  (lt (count-if (lambda (c2)
                                                  (and
                                                    (= (first c2) cr)
                                                    (< (second c2) cc)))
                                                cells))
                                  (rt (count-if (lambda (c2)
                                                  (and
                                                    (= (first c2) cr)
                                                    (> (second c2) cc)))
                                                cells))
                                  (max-arm (max up dn lt rt)))
                             (cond
                               ((= max-arm up) (hash-set! result (list 0 cc) 0))
                               ((= max-arm dn) (hash-set! result (list (- hh 1) cc) 0))
                               ((= max-arm lt) (hash-set! result (list cr 0) 0))
                               ((= max-arm rt) (hash-set! result (list cr (- ww 1)) 0)))
                             (cond
                               ((= max-arm up) (hash-set! result (list (- hh 1) cc) color))
                               ((= max-arm dn) (hash-set! result (list 0 cc) color))
                               ((= max-arm lt) (hash-set! result (list cr (- ww 1)) color))
                               ((= max-arm rt) (hash-set! result (list cr 0) color)))))))))
             (build-grid hh ww (r c) (hash-ref result (list r c) 0))))))

Provenance

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