← af0ae766e671 · af6e765bcc41 →

af373b71d67d

A connected green (3) motif and one hollow rectangular frame of another color appear on a 0 background. Erase the motif, rotate it 90 degrees clockwise, and stamp the normalized result at the frame's top-left interior coordinate. The stamp wins on contact with the frame border.

parametric familyerase-and-reuse objectplacement into containerrotation

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 (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))))) (define (f14-border-cells r0 c0 r1 c1) (for*/list ((r (in-range r0 (+ r1 1))) (c (in-range c0 (+ c1 1))) #:when (or (= r r0) (= r r1) (= c c0) (= c c1))) (list r c))) (define (v1-normalized-offsets obj) (let* ((bb (obj-bbox obj)) (r0 (first bb)) (c0 (second bb))) (sort (map (lambda (p) (list (- (first p) r0) (- (second p) c0))) (obj-cells obj)) e8b-list<))) (define (v2-exact-rect-outline? obj) (let* ((bb (obj-bbox obj)) (r0 (first bb)) (c0 (second bb)) (r1 (third bb)) (c1 (fourth bb)) (expected (sort (f14-border-cells r0 c0 r1 c1) e8b-list<)) (cells (sort (obj-cells obj) e8b-list<))) (and (>= (- r1 r0) 2) (>= (- c1 c0) 2) (equal? cells expected)))) (define (v2-rotate-offsets-90 offsets) (let* ((maxr (apply max (map first offsets))) (raw (map (lambda (p) (list (second p) (- maxr (first p)))) offsets))) (sort raw e8b-list<))) (let* ((obj (first (sort (filter (lambda (obj) (= (obj-color obj) 3)) (objects g 0)) (lambda (a b) (or (> (obj-size a) (obj-size b)) (and (= (obj-size a) (obj-size b)) (e8b-list< (obj-bbox a) (obj-bbox b)))))))) (ring (first (sort (filter (lambda (obj) (and (not (= (obj-color obj) 3)) (v2-exact-rect-outline? obj))) (objects g 0)) (lambda (a b) (or (> (obj-size a) (obj-size b)) (and (= (obj-size a) (obj-size b)) (e8b-list< (obj-bbox a) (obj-bbox b)))))))) (rb (obj-bbox ring)) (rot (v2-rotate-offsets-90 (v1-normalized-offsets obj))) (out0 (paint-cells g (obj-cells obj) 0))) (paint-cells out0 (map (lambda (p) (list (+ (first rb) 1 (first p)) (+ (second rb) 1 (second p)))) rot) 3))))

Provenance

Generator
generators/af373b71d67d/generator.py
Notes and decisions
generators/af373b71d67d/notes.md
Review label
reviewed_safe
Generator SHA-256
3742557cb43a7fda9e0eddc1dba87fbeaadc5be882ab537e2a8d9c7317ca7361
Rule hash
7364b3464a5f
Sources
bank:eb9f9fbbbec1
Lesson seeds
20261108, 20261109, 20261110, 20261111, 20261112
Reproduce lesson 1
arcpuzzles generate af373b71d67d --count 1 --seed 20261108 --test 1