← 312fb4bdff00 · 3180c5a8cff7 →

3143493b7c83

4-separated lattice of noisy 3x3 cells; the unique non-{0,1,4} marker is a 2x-upscaled key bitmap in a walled 8x8 box; lattice cells whose 1-pattern contains the key are recolored to the marker color.

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))
                (sp-color (find-first (lambda (v) (and (!= v 0) (!= v 1) (!= v 4)))
                                      (grid-colors g)))
                (sp-cells (find-color g sp-color))
                (r0 (min-of first sp-cells))
                (r1 (max-of first sp-cells))
                (c0 (min-of second sp-cells))
                (c1 (max-of second sp-cells))
                (th (/ (+ 1 (- r1 r0)) 2))
                (tw (/ (+ 1 (- c1 c0)) 2))
                (rstarts (range 0 h 4))
                (cstarts (range 0 w 4)))
           (define (block-on? tr tc)
             (for/or ((dr (range 0 2)))
                     (for/or ((dc (range 0 2)))
                             (= (at g (+ r0 (* tr 2) dr) (+ c0 (* tc 2) dc)) sp-color))))
           (define template
             (filter (lambda (p) (block-on? (first p) (second p)))
                     (flatmap (lambda (tr)
                                (map (lambda (tc) (list tr tc)) (range 0 tw)))
                              (range 0 th))))
           (define (contains-template? rs cs)
             (all? (lambda (p)
                     (let* ((r (+ rs (first p)))
                            (c (+ cs (second p))))
                       (and (< r h) (< c w) (= (at g r c) 1))))
                   template))
           (reduce (lambda (acc rs)
                     (reduce (lambda (a cs)
                               (if (contains-template? rs cs)
                                   (reduce (lambda (aa p)
                                             (set-cell aa
                                                       (+ rs (first p))
                                                       (+ cs (second p))
                                                       sp-color))
                                           a
                                           template)
                                   a))
                             acc
                             cstarts))
                   g
                   rstarts))))

Provenance

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