← 93cbf6ceadf6 · 941f7ac13580 →

93e709ad4848

One monochromatic 4-connected object on a zero background. Preserve its tight shape, holes, color and orientation while translating it to the nearest canvas corner, measured by bounding-box center. Equal distances choose top, then left. A three-profile teaching cycle distinguishes center/anchor rules, tie handling and independent canvas dimensions.

geometrymovementsame_size

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 (crop-obj grid obj) (let* ((r0 (obj-r1 obj)) (c0 (obj-c1 obj)) (h (obj-h obj)) (w (obj-w obj))) (for/fold ((out (empty-grid h w 0))) ((p (in-list (obj-cells obj)))) (set-cell out (- (first p) r0) (- (second p) c0) (at grid (first p) (second p)))))) (define (paste-crop grid crop r0 c0) (for*/fold ((out grid)) ((r (in-range (rows crop))) (c (in-range (cols crop)))) (let ((v (at crop r c)) (rr (+ r0 r)) (cc (+ c0 c))) (if (and (not (= v 0)) (in-bounds? rr cc (rows grid) (cols grid))) (set-cell out rr cc v) out)))) (define (square n) (* n n)) (define (corner-score pos ch cw cr2 cc2) (+ (square (- (+ (* 2 (first pos)) ch -1) cr2)) (square (- (+ (* 2 (second pos)) cw -1) cc2)))) (let* ((comps (objects g 0))) (if (empty? comps) g (let* ((obj (first comps)) (crop (crop-obj g obj)) (ch (rows crop)) (cw (cols crop)) (cr2 (+ (obj-r1 obj) (obj-r2 obj))) (cc2 (+ (obj-c1 obj) (obj-c2 obj))) (corners (list (list 0 0) (list 0 (- (cols g) cw)) (list (- (rows g) ch) 0) (list (- (rows g) ch) (- (cols g) cw)))) (target (first (sort corners (lambda (a b) (< (corner-score a ch cw cr2 cc2) (corner-score b ch cw cr2 cc2))))))) (paste-crop (empty-grid (rows g) (cols g) 0) crop (first target) (second target)))))))

Provenance

Generator
generators/93e709ad4848/generator.py
Notes and decisions
generators/93e709ad4848/notes.md
Review label
reviewed_safe
Generator SHA-256
c088bea0c98c51f4c651785b5dea8fe0f086fccb97c7802ecd07b7cf52e58e07
Rule hash
684dd7c8349b
Sources
bank:ece0cc5101a3
Lesson seeds
20261108, 20261109, 20261110, 20261111, 20261112
Reproduce lesson 1
arcpuzzles generate 93e709ad4848 --count 1 --seed 20261108 --test 1