← 4326f5c2ded0 · 441c97bcdb07 →

43cca8eff94f

A connected red (2) polyomino lies wholly to one side of a hollow cyan (8) rectangular frame. Translate the red shape rigidly toward the frame until the next step would touch it. Every five-sample teaching window contains right, left, down, and two up examples.

parametric familyobject motionrelative positionshape docking

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 (clear-cells grid cells) (for/fold ((out grid)) ((p (in-list cells))) (set-cell out (first p) (second p) 0))) (define (nonzero-cells grid) (filter (lambda (p) (not (= (at grid (first p) (second p)) 0))) (grid-positions grid))) (define (object-color-cells grid color) (filter (lambda (obj) (= (obj-color obj) color)) (objects grid 0))) (define (slide-cells grid cells dr dc blockers) (let loop ((cur cells)) (let ((nxt (translate-cells cur dr dc))) (if (and (all? (lambda (p) (in-bounds? (first p) (second p) (rows grid) (cols grid))) nxt) (not (any? (lambda (p) (member? p blockers)) nxt))) (loop nxt) cur)))) (let* ((frame (first (object-color-cells g 8))) (obj (first (object-color-cells g 2))) (drdc (cond ((< (obj-c2 obj) (obj-c1 frame)) (list 0 1)) ((> (obj-c1 obj) (obj-c2 frame)) (list 0 -1)) ((< (obj-r2 obj) (obj-r1 frame)) (list 1 0)) (else (list -1 0)))) (cells (obj-cells obj)) (slid (slide-cells g cells (first drdc) (second drdc) (filter (lambda (p) (not (= (at g (first p) (second p)) 2))) (nonzero-cells g))))) (paint-cells (clear-cells g cells) slid 2))))

Provenance

Generator
generators/43cca8eff94f/generator.py
Notes and decisions
generators/43cca8eff94f/notes.md
Review label
reviewed_safe
Generator SHA-256
fc7217aa7f21bf87864b23620caa1c5ca58a3fc1ca2f6b84c66852ee0f37cb43
Rule hash
ced1f6ce57f8
Sources
bank:6bdef6f37fa3
Lesson seeds
20261108, 20261109, 20261110, 20261111, 20261112
Reproduce lesson 1
arcpuzzles generate 43cca8eff94f --count 1 --seed 20261108 --test 1