← bc5e668b7668 · bca4f37ec5e9 →
bc932ac8117a
A hollow framed object and a different-colored solid square have equal bounding-box size. Transfer every enclosed zero region of the hollow in local coordinates by carving those cells from the solid; preserve all other cells. Ordinary draws contain a connected divider that creates multiple holes and therefore refutes whole-interior and largest-hole-only shortcuts. Three-example lessons also refute a rightmost-target positional shortcut.
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* ((objs (objects g 0)) (hollows (filter (lambda (obj) (not (empty? (nx-hole-cells (obj-cells obj))))) objs)) (solids (filter (lambda (obj) (empty? (nx-hole-cells (obj-cells obj)))) objs))) (let loop-h ((hs hollows)) (if (empty? hs) g (let* ((hobj (first hs)) (hbb (obj-bbox hobj)) (hh (+ 1 (- (third hbb) (first hbb)))) (hw (+ 1 (- (fourth hbb) (second hbb)))) (rel (map (lambda (p) (list (- (first p) (first hbb)) (- (second p) (second hbb)))) (nx-hole-cells (obj-cells hobj)))) (match (filter (lambda (sobj) (let ((sbb (obj-bbox sobj))) (and (= (+ 1 (- (third sbb) (first sbb))) hh) (= (+ 1 (- (fourth sbb) (second sbb))) hw)))) solids))) (if (empty? match) (loop-h (rest hs)) (let ((sbb (obj-bbox (first match)))) (paint-cells g (map (lambda (p) (list (+ (first sbb) (first p)) (+ (second sbb) (second p)))) rel) 0)))))))))
Provenance
- Generator
- generators/bc932ac8117a/generator.py
- Notes and decisions
- generators/bc932ac8117a/notes.md
- Review label
- reviewed_safe
- Generator SHA-256
- f102767753d74bdfb9838d93d0d8214f2d304fb029de49d25ed8ceec3467c873
- Rule hash
- bcafd3a4dd95
- Sources
- bank:391ca7d21fbe
- Lesson seeds
- 20261108, 20261109, 20261110, 20261111, 20261112
- Reproduce lesson 1
arcpuzzles generate bc932ac8117a --count 1 --seed 20261108 --test 1