← a7a47f5cee60 · a7e26e20850c →
a7d4df2828a0
A control at (0,0) selects a local transform of one separated, connected, single-color 3-6-cell motif: 1=90cw, 2=180, 3=flip-lr, 4=flip-ud. The motif and its transformed footprint both fit; the selected transform changes the motif. Other symmetries are allowed, including canonical T shapes. Paint on a fresh zero canvas at the original bbox top-left; discard the control.
parametric family
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* ((code (at g 0 0)) (cells (filter (lambda (p) (and (not (= (at g (first p) (second p)) 0)) (not (and (= (first p) 0) (= (second p) 0))))) (grid-positions g))) (bb (bbox-of-cells cells)) (color (at g (first (first cells)) (second (first cells)))) (name (cond ((= code 1) 'rot90) ((= code 2) 'rot180) ((= code 3) 'flip-h) (else 'flip-v))) (shape (e8-transform-cells cells name))) (paint-cells (empty-grid (rows g) (cols g) 0) (map (lambda (p) (list (+ (first bb) (first p)) (+ (second bb) (second p)))) shape) color))))
Provenance
- Generator
- generators/a7d4df2828a0/generator.py
- Notes and decisions
- generators/a7d4df2828a0/notes.md
- Review label
- reviewed_safe
- Generator SHA-256
- 2a710e880d69b1c86cdc64eea19c274c9dd7a26dbcf4bcc06f461c04c8ffca9c
- Rule hash
- 089b88c1e5ad
- Sources
- bank:b5b9f7c948f0
- Lesson seeds
- 20261108, 20261109, 20261110, 20261111, 20261112
- Reproduce lesson 1
arcpuzzles generate a7d4df2828a0 --count 1 --seed 20261108 --test 1