← f505996a2fdc · f5952ff1cee1 →

f563fafba6ac

Three or four separated monochromatic objects have 0, 1, or 2 enclosed holes. Normalize each object, sort by (hole_count, color), and pack the objects left-to-right with one zero column between neighbours. Ordinary draws explicitly refute color-only, stable-input-tie, and area-order shortcuts while retaining canonical 11x15 and 14x15 profiles.

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 (fifth xs) (list-ref xs 4)) (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))) (define (t3-hole-regions grid cells) (let* ((bb (bbox-of-cells cells)) (r0 (first bb)) (c0 (second bb)) (r1 (third bb)) (c1 (fourth bb)) (binary (grid-from-fn (+ 1 (- r1 r0)) (+ 1 (- c1 c0)) (lambda (r c) (if (member? (list (+ r0 r) (+ c0 c)) cells) 1 0)))) (regions (find-0-regions binary 0))) (map (lambda (region) (map (lambda (p) (list (+ r0 (first p)) (+ c0 (second p)))) region)) (filter (lambda (region) (not (any? (lambda (p) (or (= (first p) 0) (= (first p) (- (rows binary) 1)) (= (second p) 0) (= (second p) (- (cols binary) 1)))) region))) regions)))) (let* ((items (sort (map (lambda (obj) (let* ((info (t10-norm-cells (obj-cells obj))) (offs (first info)) (sh (second info)) (sw (third info))) (list (length (t3-hole-regions g (obj-cells obj))) (obj-color obj) offs sh sw))) (objects g 0)) (lambda (a b) (e8b-list< (list (first a) (second a)) (list (first b) (second b)))))) (totalw (+ (apply + (map fifth items)) (max 0 (- (length items) 1)))) (maxh (apply max (map fourth items)))) (let loop ((rest-items items) (left 0) (out (empty-grid maxh totalw 0))) (if (empty? rest-items) out (let* ((item (first rest-items)) (color (second item)) (offs (third item)) (sw (fifth item))) (loop (rest rest-items) (+ left sw 1) (paint-cells out (map (lambda (p) (list (first p) (+ left (second p)))) offs) color))))))))

Provenance

Generator
generators/f563fafba6ac/generator.py
Notes and decisions
generators/f563fafba6ac/notes.md
Review label
reviewed_safe
Generator SHA-256
ae0ce7c51dbe8cd9a78e2e44771b8364b523451c7ecaf34253a7f79e1f79d404
Rule hash
458549b829a3
Sources
bank:66491d778d88
Lesson seeds
20261108, 20261109, 20261110, 20261111, 20261112
Reproduce lesson 1
arcpuzzles generate f563fafba6ac --count 1 --seed 20261108 --test 1