← 8b6a2892a064 · 8bd971ea3766 →
8bc2bc6a9bb8
A sparse top-row palette recolors distinct-area color-8 components after sorting them largest-to-smallest; normalized shapes are bottom-aligned and packed with one blank column between them on the minimal canvas.
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 (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 (t10-norm-cells cells) (let* ((bb (bbox-of-cells cells)) (r0 (first bb)) (c0 (second bb)) (r1 (third bb)) (c1 (fourth bb))) (list (map (lambda (p) (list (- (first p) r0) (- (second p) c0))) cells) (+ 1 (- r1 r0)) (+ 1 (- c1 c0)) r0 c0))) (let* ((palette (filter (lambda (v) (not (= v 0))) (first g))) (body (subgrid g 1 0 (- (rows g) 1) (- (cols g) 1))) (objs (sort (filter (lambda (obj) (= (obj-color obj) 8)) (objects body 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))))))) (infos (let loop ((rest-objs objs) (rest-palette palette) (acc (list))) (if (or (empty? rest-objs) (empty? rest-palette)) (reverse acc) (let* ((info (t10-norm-cells (obj-cells (first rest-objs)))) (offs (first info)) (sh (second info)) (sw (third info))) (loop (rest rest-objs) (rest rest-palette) (cons (list offs sh sw (first rest-palette)) acc))))))) (let* ((maxh (apply max (map second infos))) (totalw (+ (apply + (map third infos)) (max 0 (- (length infos) 1))))) (let loop ((rest-infos infos) (x 0) (out (empty-grid maxh totalw 0))) (if (empty? rest-infos) out (let* ((info (first rest-infos)) (offs (first info)) (sh (second info)) (sw (third info)) (color (fourth info)) (top (- maxh sh)) (out2 (for/fold ((acc out)) ((p (in-list offs))) (set-cell acc (+ top (first p)) (+ x (second p)) color)))) (loop (rest rest-infos) (+ x sw 1) out2))))))))
Provenance
- Generator
- generators/8bc2bc6a9bb8/generator.py
- Notes and decisions
- generators/8bc2bc6a9bb8/notes.md
- Review label
- reviewed_safe
- Generator SHA-256
- 235d6570efbf8425bb88840512f9565c5862e50f1946ff1a97fb46767f2fc1ec
- Rule hash
- 45fdce305a90
- Sources
- bank:22a17f7a0399
- Lesson seeds
- 20261108, 20261109, 20261110, 20261111, 20261112
- Reproduce lesson 1
arcpuzzles generate 8bc2bc6a9bb8 --count 1 --seed 20261108 --test 1