← 95705262dbee · 95b47c355ae4 →

959992fc8fa9

Sparse pixels paint full row/column crosses; only intersections reached by different colors become red (2).

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)))
           (let* ((pixels (for*/list ((r (range 0 h)) (c (range 0 w)) #:when (!= (at g r c) 0))
                            (list r c (at g r c)))))
             (cellmap g
                      (r c v)
                      (let loop
                           ((ps pixels) (colors (list)))
                           (cond
                             ((null? ps) (cond
                                 ((null? colors) 0)
                                 ((null? (cdr colors)) (first colors))
                                 (else 2)))
                             (else (let* ((p (car ps))
                                          (pr (first p))
                                          (pc (second p))
                                          (pcol (third p)))
                                     (if (or (= r pr) (= c pc))
                                         (if (member pcol colors)
                                             (loop (cdr ps) colors)
                                             (loop (cdr ps) (cons pcol colors)))
                                         (loop (cdr ps) colors)))))))))))

Provenance

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