← 394fc1eaa85e · 39574cf4b561 →
395201c95f9d
Split the input at the two solid color-9 columns. The first two equal panels contain a label at local (0,0) and a monochrome prototype. The third panel contains a translated D4 transform (rotation or reflection) of exactly one prototype. Return a blank panel of the same size with the query cells kept in their displayed positions and recolored with the matching prototype's label.
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 transform-names (list 'id 'rot90 'rot180 'rot270 'flip-h 'flip-v 'transpose 'anti-transpose)) (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 (split-full-sep-cols grid sep) (let* ((seps (filter (lambda (c) (all? (lambda (r) (= (at grid r c) sep)) (range (rows grid)))) (range (cols grid))))) (let loop ((cuts (append seps (list (cols grid)))) (start 0) (acc (list))) (if (empty? cuts) (reverse acc) (let ((c (first cuts))) (loop (rest cuts) (+ c 1) (cons (subgrid grid 0 start (- (rows grid) 1) (- c 1)) acc))))))) (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)))) (define (e8-shape-match-any? cells target-cells) (let ((target (e8-norm target-cells))) (any? (lambda (name) (equal? (e8-transform-cells cells name) target)) transform-names))) (let* ((panels (split-full-sep-cols g 9)) (p1 (first panels)) (p2 (second panels)) (q (third panels)) (lab1 (at p1 0 0)) (lab2 (at p2 0 0)) (shape1 (filter (lambda (p) (and (not (= (at p1 (first p) (second p)) 0)) (not (and (= (first p) 0) (= (second p) 0))))) (grid-positions p1))) (qcells (filter (lambda (p) (not (= (at q (first p) (second p)) 0))) (grid-positions q))) (lab (if (e8-shape-match-any? shape1 qcells) lab1 lab2))) (paint-cells (empty-grid (rows q) (cols q) 0) qcells lab))))
Provenance
- Generator
- generators/395201c95f9d/generator.py
- Notes and decisions
- generators/395201c95f9d/notes.md
- Review label
- reviewed_safe
- Generator SHA-256
- fc4da9dc0021d34cede8847d5c99206574639aa63431d3b03b7a52466197d306
- Rule hash
- a99b04260a01
- Sources
- bank:b5b9f7c948f0
- Lesson seeds
- 20261108, 20261109, 20261110, 20261111, 20261112
- Reproduce lesson 1
arcpuzzles generate 395201c95f9d --count 1 --seed 20261108 --test 1