← fd588326c845 · fd9ad93c2cc8 →

fd68649aabf7

Distinct colored top-row markers recolor each monochrome four-connected body below an empty row 1. Choose the marker nearest the body's horizontal bounding-box center; exact ties choose the smaller column. Markers and background remain unchanged. Body colors are disjoint from marker colors.

marker_controlnearest_label

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 ((dummy 0)) (let* ((markers (filter (lambda (c) (not (= (at g 0 c) 0))) (range 0 (cols g)))) (marker-colors (map (lambda (c) (at g 0 c)) markers)) (clean (map-grid g (lambda (r c v) (if (member v marker-colors) 0 v)))) (objs (objects clean 0))) (for/fold ((out g)) ((obj (in-list objs))) (let* ((center2 (+ (obj-c1 obj) (obj-c2 obj))) (best-marker (first (sort markers (lambda (a b) (let ((da (abs (- (* 2 a) center2))) (db (abs (- (* 2 b) center2)))) (if (= da db) (< a b) (< da db))))))) (color (at g 0 best-marker))) (paint-cells out (obj-cells obj) color))))))

Provenance

Generator
generators/fd68649aabf7/generator.py
Notes and decisions
generators/fd68649aabf7/notes.md
Review label
reviewed_safe
Generator SHA-256
43366acb97d32b73f1e1279301d991749f30c97caa9a4929c6801b26a157f7e8
Rule hash
f4e553d13f24
Sources
bank:037ff40eee92
Lesson seeds
20261108, 20261109, 20261110, 20261111, 20261112
Reproduce lesson 1
arcpuzzles generate fd68649aabf7 --count 1 --seed 20261108 --test 1