← 9d0a6f959321 · 9d488d6a3875 →
9d2f7c9e2ac4
A centered maroon cross separates a visible TL-to-TR clockwise example from a BL source and empty BR target. Rotate the BL bounding box clockwise, preserving its offsets and color; generate full-fit shapes on 9..15 grids.
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 (e5-full-col grid color) (let ((hits (filter (lambda (c) (all? (lambda (r) (= (at grid r c) color)) (range (rows grid)))) (range (cols grid))))) (if (empty? hits) #f (first hits)))) (define (e5-full-row grid color) (let ((hits (filter (lambda (r) (all? (lambda (c) (= (at grid r c) color)) (range (cols grid)))) (range (rows grid))))) (if (empty? hits) #f (first hits)))) (define (e5-quadrant-bounds grid quad) (let ((gr (e5-full-row grid 9)) (gc (e5-full-col grid 9))) (cond ((equal? quad 'TL) (list 0 gr 0 gc)) ((equal? quad 'TR) (list 0 gr (+ gc 1) (cols grid))) ((equal? quad 'BL) (list (+ gr 1) (rows grid) 0 gc)) (else (list (+ gr 1) (rows grid) (+ gc 1) (cols grid)))))) (define (e5-quad-cells grid quad) (let* ((b (e5-quadrant-bounds grid quad)) (r0 (first b)) (r1 (second b)) (c0 (third b)) (c1 (fourth b))) (filter values (for*/list ((r (in-range r0 r1)) (c (in-range c0 c1))) (let ((v (at grid r c))) (if (or (= v 0) (= v 9)) #f (list v (- r r0) (- c c0)))))))) (define (e5-rotate-rel-cells cells-rel) (let* ((coords (map (lambda (x) (list (second x) (third x))) cells-rel)) (bb (bbox-of-cells coords)) (rmin (first bb)) (cmin (second bb)) (rmax (third bb)) (cmax (fourth bb)) (h (+ 1 (- rmax rmin))) (shape (map (lambda (p) (list (- (first p) rmin) (- (second p) cmin))) coords)) (rot (map (lambda (p) (list (second p) (- h 1 (first p)))) shape))) (list rot rmin cmin))) (let ((cells-rel (e5-quad-cells g 'BL))) (if (empty? cells-rel) g (let* ((color (first (first cells-rel))) (rot-info (e5-rotate-rel-cells cells-rel)) (rot (first rot-info)) (roff (second rot-info)) (coff (third rot-info)) (b (e5-quadrant-bounds g 'BR)) (br0 (first b)) (br1 (second b)) (bc0 (third b)) (bc1 (fourth b))) (for/fold ((out g)) ((p (in-list rot))) (let ((rr (+ br0 roff (first p))) (cc (+ bc0 coff (second p)))) (if (and (< rr br1) (< cc bc1)) (set-cell out rr cc color) out))))))))
Provenance
- Generator
- generators/9d2f7c9e2ac4/generator.py
- Notes and decisions
- generators/9d2f7c9e2ac4/notes.md
- Review label
- reviewed_safe
- Generator SHA-256
- 8105b0c6704d022567a9681768c76fc3624d3be5c300b1b941a9fbc1494cf104
- Rule hash
- 3d50e1ec984b
- Sources
- bank:bfb58307fa26
- Lesson seeds
- 20261108, 20261109, 20261110, 20261111, 20261112
- Reproduce lesson 1
arcpuzzles generate 9d2f7c9e2ac4 --count 1 --seed 20261108 --test 1