← b7ff231aab1a · b8259d813f79 →

b8078ba8f836

On a 0 background, each color occurring exactly twice is completed into an inclusive horizontal or vertical segment when its two cells are aligned. Every generated input has at least one pair of each orientation. A scheduled counterexample profile also includes an unaligned two-cell color and a three-cell color with one aligned subpair; both must remain unchanged, making the exact-count and alignment predicates learnable.

endpoint detectionhorizontal/vertical fillingmulti-color local logic

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).

Reference rule (Racket)

(rule!
  (for/fold ([out g]) ([color (in-list (grid-colors g 0))])
    (let ((cells (find-color g color)))
      (if (= (length cells) 2)
          (let ((a (first cells)) (b (second cells)))
            (cond [(= (first a) (first b))
                   (paint-cells out
                     (for/list ([c (in-range (min (second a) (second b))
                                             (+ (max (second a) (second b)) 1))])
                       (list (first a) c))
                     color)]
                  [(= (second a) (second b))
                   (paint-cells out
                     (for/list ([r (in-range (min (first a) (first b))
                                             (+ (max (first a) (first b)) 1))])
                       (list r (second a)))
                     color)]
                  [else out]))
          out))))

Provenance

Generator
generators/b8078ba8f836/generator.py
Notes and decisions
generators/b8078ba8f836/notes.md
Review label
reviewed_safe
Generator SHA-256
f24df53496b996e4f10bebb978ce798975d4a51606a5f4621a4a80c4cf666521
Rule hash
48fc6f20bbde
Sources
bank:9a66c53abf7f
Lesson seeds
20261108, 20261109, 20261110, 20261111, 20261112
Reproduce lesson 1
arcpuzzles generate b8078ba8f836 --count 1 --seed 20261108 --test 1