← c2a1ba1a45fd · c2cd365ed4fa →
c2b9484357c1
A 0-background grid contains two differently colored hollow objects and optionally one larger solid distractor. Select the hollow object with the greatest number of colored cells, fill every enclosed zero region of that object with its own color, and leave every other object unchanged.
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 (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))))) (define (nx-hole-cells cells) (let* ((bb (bbox-of-cells cells)) (r0 (first bb)) (c0 (second bb)) (info (f4-norm-info cells)) (norm (first info)) (h (second info)) (w (third info)) (mask (paint-cells (empty-grid h w 0) norm 1)) (regions (filter (lambda (region) (not (any? (lambda (p) (or (= (first p) 0) (= (first p) (- h 1)) (= (second p) 0) (= (second p) (- w 1)))) region))) (find-0-regions mask 0)))) (apply append (map (lambda (region) (map (lambda (p) (list (+ r0 (first p)) (+ c0 (second p)))) region)) regions)))) (let ((hollow (filter (lambda (obj) (not (empty? (nx-hole-cells (obj-cells obj))))) (objects g 0)))) (if (empty? hollow) g (let* ((chosen (first (sort hollow (lambda (a b) (> (obj-size a) (obj-size b)))))) (holes (nx-hole-cells (obj-cells chosen)))) (paint-cells g holes (obj-color chosen)))))))
Provenance
- Generator
- generators/c2b9484357c1/generator.py
- Notes and decisions
- generators/c2b9484357c1/notes.md
- Review label
- reviewed_safe
- Generator SHA-256
- 7eefd49b0b144b1362b42d855fab254c80f801c14c7f701680dc6131ff14bb62
- Rule hash
- 4d65cf4d4b83
- Sources
- bank:391ca7d21fbe
- Lesson seeds
- 20261108, 20261109, 20261110, 20261111, 20261112
- Reproduce lesson 1
arcpuzzles generate c2b9484357c1 --count 1 --seed 20261108 --test 1