← f6b9f647b109 · f7660051ec70 →
f705b8f51e62
A 0-background grid contains two to four complete copies of one connected polyomino and exactly one connected defective strict subset. Canonical-profile anchors are monochrome; contrast examples give the defect a distinct color. Output the full normalized polyomino painted in the defective copy's color.
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 (v1-normalized-offsets obj) (let* ((bb (obj-bbox obj)) (r0 (first bb)) (c0 (second bb))) (sort (map (lambda (p) (list (- (first p) r0) (- (second p) c0))) (obj-cells obj)) e8b-list<))) (define (v1-offset-grid offsets color) (if (empty? offsets) (list (list 0)) (paint-cells (empty-grid (+ 1 (apply max (map first offsets))) (+ 1 (apply max (map second offsets))) 0) offsets color))) (let* ((objs (objects g 0)) (shapes (map (lambda (obj) (list obj (v1-normalized-offsets obj))) objs)) (canonical-entry (first (sort shapes (lambda (a b) (or (> (length (second a)) (length (second b))) (and (= (length (second a)) (length (second b))) (e8b-list< (obj-bbox (first a)) (obj-bbox (first b))))))))) (canonical (second canonical-entry)) (defective-hits (filter (lambda (entry) (let ((norm (second entry))) (and (not (equal? norm canonical)) (all? (lambda (p) (member? p canonical)) norm)))) shapes)) (defective (if (empty? defective-hits) (first (sort shapes (lambda (a b) (< (length (second a)) (length (second b)))))) (first defective-hits)))) (v1-offset-grid canonical (obj-color (first defective))))))
Provenance
- Generator
- generators/f705b8f51e62/generator.py
- Notes and decisions
- generators/f705b8f51e62/notes.md
- Review label
- reviewed_safe
- Generator SHA-256
- 88e26cc7e14793e327d3549d6203563cf25daec92ccce425f8a12f565611d85a
- Rule hash
- 4ad429046360
- Sources
- bank:91ced140cdc4
- Lesson seeds
- 20261108, 20261109, 20261110, 20261111, 20261112
- Reproduce lesson 1
arcpuzzles generate f705b8f51e62 --count 1 --seed 20261108 --test 1