← a0ff437161da · a178821cc6bf →
a16e387b682a
A 0-background grid contains exactly three separated solid 2x2 objects in distinct non-cyan colors. Compute Manhattan distance from each object's bounding-box center to the full-grid center, choose the unique closest object, and recolor all four of its cells to color 8.
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)) (define (e8b-list< a b) (cond ((empty? a) #f) ((< (first a) (first b)) #t) ((> (first a) (first b)) #f) (else (e8b-list< (rest a) (rest b))))) (let* ((h (rows g)) (w (cols g)) (chosen (first (sort (objects g 0) (lambda (a b) (let* ((ba (obj-bbox a)) (bb (obj-bbox b)) (sa (+ (abs (- (+ (first ba) (third ba)) (- h 1))) (abs (- (+ (second ba) (fourth ba)) (- w 1))))) (sb (+ (abs (- (+ (first bb) (third bb)) (- h 1))) (abs (- (+ (second bb) (fourth bb)) (- w 1)))))) (e8b-list< (list sa (obj-size a) (first ba) (second ba)) (list sb (obj-size b) (first bb) (second bb))))))))) (paint-cells g (obj-cells chosen) 8))))
Provenance
- Generator
- generators/a16e387b682a/generator.py
- Notes and decisions
- generators/a16e387b682a/notes.md
- Review label
- reviewed_safe
- Generator SHA-256
- 6ee28e89af05de084974a8f474826d3d7e1e8ab76db8f0909c4396b79cb07313
- Rule hash
- f329ca8c8480
- Sources
- bank:66491d778d88
- Lesson seeds
- 20261108, 20261109, 20261110, 20261111, 20261112
- Reproduce lesson 1
arcpuzzles generate a16e387b682a --count 1 --seed 20261108 --test 1