← 5f5b990b28ab · 5f8abe24cffe →

5f6fdf4f9900

Scale each cell by the nonzero-color count and draw red diagonals in zero blocks at concave diagonal corners.

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* ((n (length (filter (lambda (v) (!= v 0)) (grid-colors g))))
                (oh (* h n))
                (ow (* w n)))
           (build-grid oh
                       ow
                       (br bc)
                       (let* ((r (quotient br n))
                              (c (quotient bc n))
                              (lr (modulo br n))
                              (lc (modulo bc n))
                              (v (at g r c)))
                         (if (!= v 0)
                             v
                             (let* ((cands (filter (lambda (x) x)
                                                   (map (lambda (d)
                                                          (let* ((dr2 (first d))
                                                                 (dc2 (second d))
                                                                 (nr (+ r dr2))
                                                                 (nc (+ c dc2)))
                                                            (and
                                                              (in-bounds? nr nc h w)
                                                              (!= (at g nr nc) 0)
                                                              (zero? (at g nr c))
                                                              (zero? (at g r nc))
                                                              (if (= dr2 dc2)
                                                                  (if (= lr lc) 2 0)
                                                                  (if (= lr
                                                                         (- (- n 1) lc))
                                                                      2
                                                                      0)))))
                                                        diagonal-deltas)))
                                    (found (if (null? cands) 0 (first cands))))
                               found)))))))

Provenance

Generator
generators/5f6fdf4f9900/generator.py
Notes and decisions
generators/5f6fdf4f9900/notes.md
Review label
reviewed_safe
Generator SHA-256
569fc64005104d307d54d9b451c1b7f2ac9397f52f6e986ee2d7b7f46009bd83
Rule hash
9c543a96623c
Sources
augmented, training
Lesson seeds
20261108, 20261109, 20261110, 20261111, 20261112
Reproduce lesson 1
arcpuzzles generate 5f6fdf4f9900 --count 1 --seed 20261108 --test 1