← 92f4d4eb0dbb · 938fbbaf1437 →

9349fabc466a

Sparse 0-background grids with 2-3 colors. Same-color markers may form a single row/column pair, a gapped collinear triple, several row/column spans, a lowest-color overlap, or an unaligned distractor. Fill every background cell between same-color markers sharing a row or column; keep existing markers, and let the numerically smallest eligible color win overlaps.

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!
  (let ((colors (grid-colors g 0)))
    (grid-from-fn h w
      (lambda (r c)
        (let ((v (cell-at g r c)))
          (if (not (= v 0))
              v
              (let ((fill-color
                      (find-first
                        (lambda (color)
                          (let ((pts (find-color g color)))
                            (or
                              (any?
                                (lambda (p1)
                                  (any?
                                    (lambda (p2)
                                      (and (= (fst p1) r) (= (fst p2) r)
                                           (<= (min (snd p1) (snd p2)) c)
                                           (<= c (max (snd p1) (snd p2)))))
                                    pts))
                                pts)
                              (any?
                                (lambda (p1)
                                  (any?
                                    (lambda (p2)
                                      (and (= (snd p1) c) (= (snd p2) c)
                                           (<= (min (fst p1) (fst p2)) r)
                                           (<= r (max (fst p1) (fst p2)))))
                                    pts))
                                pts))))
                        colors)))
                (if fill-color fill-color 0))))))))

Provenance

Generator
generators/9349fabc466a/generator.py
Notes and decisions
generators/9349fabc466a/notes.md
Review label
reviewed_safe
Generator SHA-256
933d3b581683cd51c37ad25c5721174e7f38a2d62a62ecb55e61f5f131d680d6
Rule hash
bde71b91a345
Sources
bank:765a70430bc9
Lesson seeds
20261108, 20261109, 20261110, 20261111, 20261112
Reproduce lesson 1
arcpuzzles generate 9349fabc466a --count 1 --seed 20261108 --test 1