← 5a70e1b62a50 · 5a8d42591332 →

5a85abd1e231

Nine scattered solid 3x3 tiles sit on background 0: eight gray(5) direction glyphs and one all-gray blank. Each direction glyph has the canonical arrow/corner shape and one signal color. Pack the eight glyphs into the matching perimeter blocks of a 9x9 gray compass while the blank tile corresponds to the untouched gray center. Input positions and color assignments are randomized; one canonical profile also permits exactly one tile pair joined through one cardinal edge cell.

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)))
           (begin
             (define (solid-3x3? r c)
               (for*/and ((dr (range 0 3)) (dc (range 0 3)))
                         (!= (at g (+ r dr) (+ c dc)) 0)))
             (define tiles
               (for*/list ((r (range 0 (- h 2))) (c (range 0 (- w 2))) #:when (solid-3x3? r c))
                 (list r c)))
             (define (colored-cells tr tc)
               (for*/list ((dr (range 0 3)) (dc (range 0 3))
                   #:when
                   (!= (at g (+ tr dr) (+ tc dc)) 5))
                 (list dr dc)))
             (define (target-row cells)
               (let* ((rs (map first cells))
                      (lo (min-list rs))
                      (hi (max-list rs)))
                 (cond ((= hi 1) 0) ((= lo 1) 2) (else 1))))
             (define (target-col cells)
               (let* ((cs (map second cells))
                      (lo (min-list cs))
                      (hi (max-list cs)))
                 (cond ((= hi 1) 0) ((= lo 1) 2) (else 1))))
             (define (stamp-tile out tile)
               (let* ((tr (first tile))
                      (tc (second tile))
                      (cells (colored-cells tr tc)))
                 (if (empty? cells)
                     out
                     (let ((or (* 3 (target-row cells)))
                           (oc (* 3 (target-col cells))))
                       (for*/fold ((acc out))
                                  ((dr (range 0 3)) (dc (range 0 3)))
                                  (set-cell acc
                                            (+ or dr)
                                            (+ oc dc)
                                            (at g (+ tr dr) (+ tc dc))))))))
             (for/fold ((out (empty-grid 9 9 5))) ((tile tiles)) (stamp-tile out tile))))))

Provenance

Generator
generators/5a85abd1e231/generator.py
Notes and decisions
generators/5a85abd1e231/notes.md
Review label
reviewed_safe
Generator SHA-256
619bb88b63a672d5df8d0b4fd80ef53b23c8443aaf9bdd3516e58484628dab58
Rule hash
2b7620b38386
Sources
training
Lesson seeds
20261108, 20261109, 20261110, 20261111, 20261112
Reproduce lesson 1
arcpuzzles generate 5a85abd1e231 --count 1 --seed 20261108 --test 1