← e93047bc5081 · e937c5b85cdd →

e934ded59427

A 0-background grid contains 2-5 distinct colors. Each color occurs exactly twice at opposite corners of a proper axis-aligned rectangle. The rectangles occupy disjoint bounding boxes, so their borders have no undefined color-overwrite intersections. The rule draws every rectangle border in its marker color. Grid shape, pair count, rectangle dimensions, diagonal orientation, position, and palette vary.

corner_pair_rect_border

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!
  (for/fold ([out (empty-grid (rows g) (cols g) 0)]) ([color (in-list (grid-colors g 0))])
    (let ((cells (find-color g color)))
      (if (= (length cells) 2)
          (let* ((a (first cells))
                 (b (second cells))
                 (r0 (min (first a) (first b)))
                 (r1 (max (first a) (first b)))
                 (c0 (min (second a) (second b)))
                 (c1 (max (second a) (second b))))
            (paint-cells out
                         (remove-duplicates
                          (append (for/list ([r (in-range r0 (+ r1 1))]) (list r c0))
                                  (for/list ([r (in-range r0 (+ r1 1))]) (list r c1))
                                  (for/list ([c (in-range c0 (+ c1 1))]) (list r0 c))
                                  (for/list ([c (in-range c0 (+ c1 1))]) (list r1 c))))
                         color))
          out))))

Provenance

Generator
generators/e934ded59427/generator.py
Notes and decisions
generators/e934ded59427/notes.md
Review label
reviewed_safe
Generator SHA-256
d12836896fab78b421a105a790f04a7c4fbf2aca360ba0c5ad4aeceeee67334c
Rule hash
fd190ef6787c
Sources
bank:f4425e302da7
Lesson seeds
20261108, 20261109, 20261110, 20261111, 20261112
Reproduce lesson 1
arcpuzzles generate e934ded59427 --count 1 --seed 20261108 --test 1