← e9be57a9c56d · ea61d17502dd →

e9cd770abc01

Several separated color-3 objects (plus non-{3,7} distractors). Rule: repaint the color-3 object whose bbox center is closest to the grid center as color 7. Grid size, object count, shapes and positions vary.

parametric familybounding-box centersobject recolorspatial ranking

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! (let ((dummy 0)) (define (objs-color grid color) (filter (lambda (obj) (= (obj-color obj) color)) (objects grid 0))) (define (paint-obj grid obj color) (paint-cells grid (obj-cells obj) color)) (define (bbox< a b) (cond ((not (= (obj-r1 a) (obj-r1 b))) (< (obj-r1 a) (obj-r1 b))) ((not (= (obj-c1 a) (obj-c1 b))) (< (obj-c1 a) (obj-c1 b))) ((not (= (obj-r2 a) (obj-r2 b))) (< (obj-r2 a) (obj-r2 b))) (else (< (obj-c2 a) (obj-c2 b))))) (define (center-distance2 obj) (+ (abs (- (+ (obj-r1 obj) (obj-r2 obj)) (- (rows g) 1))) (abs (- (+ (obj-c1 obj) (obj-c2 obj)) (- (cols g) 1))))) (let ((target (first (sort (objs-color g 3) (lambda (a b) (let ((da (center-distance2 a)) (db (center-distance2 b))) (if (= da db) (bbox< a b) (< da db)))))))) (paint-obj g target 7))))

Provenance

Generator
generators/e9cd770abc01/generator.py
Notes and decisions
generators/e9cd770abc01/notes.md
Review label
reviewed_safe
Generator SHA-256
46fe6f2f7b447332aae3974071ddcaaa4e44e7b2ce9719764f44de288fc4499c
Rule hash
94ace105c3d6
Sources
bank:b87bafc16aa7
Lesson seeds
20261108, 20261109, 20261110, 20261111, 20261112
Reproduce lesson 1
arcpuzzles generate e9cd770abc01 --count 1 --seed 20261108 --test 1