← 531905d00c4b · 536de2f7591b →

531e65dffc0a

One monochrome prototype and isolated anchors: 2=id, 3=cw90, 4=180, 5=ccw90. Stamp bounding-box-normalized shapes in the prototype color on a fresh grid, clipping at edges and taking the union of overlaps. Alternating teaching and broad scenes expose canonical-fitting shortcuts.

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 (anti-transpose-grid grid) (rotate-180 (transpose grid))) (define (apply-transform-name name grid) (cond ((equal? name 'id) grid) ((equal? name 'rot90) (rotate-cw grid)) ((equal? name 'rot180) (rotate-180 grid)) ((equal? name 'rot270) (rotate-ccw grid)) ((equal? name 'flip-h) (flip-lr grid)) ((equal? name 'flip-v) (flip-ud grid)) ((equal? name 'transpose) (transpose grid)) (else (anti-transpose-grid grid)))) (define (e8-cell<? a b) (or (< (first a) (first b)) (and (= (first a) (first b)) (< (second a) (second b))))) (define (e8-norm cells) (sort (normalize-cells cells) e8-cell<?)) (define (e8-cells->grid cells) (let* ((norm (e8-norm cells)) (bb (bbox-of-cells norm))) (if (not bb) (list (list 0)) (paint-cells (empty-grid (+ 1 (third bb)) (+ 1 (fourth bb)) 0) norm 1)))) (define (e8-grid-shape grid) (e8-norm (filter (lambda (p) (not (= (at grid (first p) (second p)) 0))) (grid-positions grid)))) (define (e8-transform-cells cells name) (e8-grid-shape (apply-transform-name name (e8-cells->grid cells)))) (let* ((anchors (filter (lambda (p) (member? (at g (first p) (second p)) (list 2 3 4 5))) (grid-positions g))) (proto (first (sort (filter (lambda (obj) (not (member? (obj-color obj) (list 2 3 4 5)))) (objects g 0)) (lambda (a b) (> (obj-size a) (obj-size b)))))) (shape (e8-norm (obj-cells proto))) (color (obj-color proto))) (for/fold ((out (empty-grid (rows g) (cols g) 0))) ((anchor (in-list anchors))) (let* ((code (at g (first anchor) (second anchor))) (name (cond ((= code 2) 'id) ((= code 3) 'rot90) ((= code 4) 'rot180) (else 'rot270))) (tshape (e8-transform-cells shape name))) (paint-cells out (map (lambda (p) (list (+ (first anchor) (first p)) (+ (second anchor) (second p)))) tshape) color))))))

Provenance

Generator
generators/531e65dffc0a/generator.py
Notes and decisions
generators/531e65dffc0a/notes.md
Review label
reviewed_safe
Generator SHA-256
704565e2cac3d04a427b95e0550d6461d948626144a5eb9598968a60554d1e58
Rule hash
4acd30f1e03a
Sources
bank:b5b9f7c948f0
Lesson seeds
20261108, 20261109, 20261110, 20261111, 20261112
Reproduce lesson 1
arcpuzzles generate 531e65dffc0a --count 1 --seed 20261108 --test 1