← 01f4294de005 · 02280b74c8ab →

021fb6acf24f

A 0-background grid contains one or two non-zero colors, exactly two anchors per color, with distinct rows and columns. In ascending numeric color order, each color fills still-zero cells in its anchor bounding box; lower colors keep contested overlap cells.

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* ((colors (filter (lambda (v) (!= 0 v))
                                (unique (map third (grid-cells g))))))
           (reduce (lambda (acc color)
                     (let* ((bb (bbox-of-cells (find-color g color)))
                            (r1 (first bb))
                            (c1 (second bb))
                            (r2 (third bb))
                            (c2 (fourth bb)))
                       (cellmap g
                                (r c v)
                                (if (and
                                      (>= r r1)
                                      (<= r r2)
                                      (>= c c1)
                                      (<= c c2)
                                      (zero? (at acc r c)))
                                    color
                                    (at acc r c)))))
                   g
                   colors))))

Provenance

Generator
generators/021fb6acf24f/generator.py
Notes and decisions
generators/021fb6acf24f/notes.md
Review label
reviewed_safe
Generator SHA-256
28f506566dcff22268a0cac1006e265277c141dc3860c2efc2591264c8801f09
Rule hash
9a7f76b1ea86
Sources
training
Lesson seeds
20261108, 20261109, 20261110, 20261111, 20261112
Reproduce lesson 1
arcpuzzles generate 021fb6acf24f --count 1 --seed 20261108 --test 1