← 9de4ae27d0d0 · 9df4a42fced1 →
9de65c6eed00
Two separated connected objects have distinct colors and unequal sizes. Normalize both masks to the same top-left origin, remove the smaller mask's exact cells from the larger mask, and paint the remainder in the larger object's color on the maximum of their normalized bounding boxes.
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 (f4-norm cells) (let* ((bb (bbox-of-cells cells)) (r0 (first bb)) (c0 (second bb))) (map (lambda (p) (list (- (first p) r0) (- (second p) c0))) cells))) (define (f4-norm-info cells) (let* ((bb (bbox-of-cells cells)) (r0 (first bb)) (c0 (second bb)) (r1 (third bb)) (c1 (fourth bb))) (list (f4-norm cells) (+ 1 (- r1 r0)) (+ 1 (- c1 c0))))) (let* ((sorted (sort (objects g 0) (lambda (a b) (let ((ba (obj-bbox a)) (bb (obj-bbox b))) (e8b-list< (list (- (obj-size a)) (first ba) (second ba)) (list (- (obj-size b)) (first bb) (second bb))))))) (a (first sorted)) (b (second sorted)) (ia (f4-norm-info (obj-cells a))) (ib (f4-norm-info (obj-cells b))) (diff (filter (lambda (p) (not (member? p (first ib)))) (first ia))) (h (max (second ia) (second ib))) (w (max (third ia) (third ib)))) (paint-cells (empty-grid h w 0) diff (obj-color a)))))
Provenance
- Generator
- generators/9de65c6eed00/generator.py
- Notes and decisions
- generators/9de65c6eed00/notes.md
- Review label
- reviewed_safe
- Generator SHA-256
- 98e3565fc5906cde0d63a8e6361379d94162610db2287691285123df2c79703f
- Rule hash
- 5c7d71fc1b03
- Sources
- bank:884454e62c49
- Lesson seeds
- 20261108, 20261109, 20261110, 20261111, 20261112
- Reproduce lesson 1
arcpuzzles generate 9de65c6eed00 --count 1 --seed 20261108 --test 1