← bb75d495c809 · bbbec840ce41 →
bbbabb45042b
A zero-background grid contains one connected four-cell red (2) template, one to three isolated blue (1) anchor cells, and sometimes one smaller singleton red distractor. Normalize the largest red component by its bounding-box top-left and copy those offsets in blue at every anchor, preserving the input. Therefore an anchor is part of the copied shape when the template contains normalized offset (0, 0), but remains as an extra marker when that offset is absent.
shape copyingtemplate extractiontranslation
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).
Reference rule (Racket)
(rule! (let ((dummy 0)) (define (objs-of color) (filter (lambda (obj) (= (obj-color obj) color)) (objects g 0))) (define (copy-cells out cells color r0 c0) (for/fold ((acc out)) ((p (in-list cells))) (let ((r (+ r0 (first p))) (c (+ c0 (second p)))) (if (in-bounds? r c (rows out) (cols out)) (set-cell acc r c color) acc)))) (let* ((template (first (sort (objs-of 2) (lambda (a b) (> (obj-size a) (obj-size b)))))) (offsets (normalize-cells (obj-cells template))) (anchors (find-color g 1))) (for/fold ((out g)) ((anchor (in-list anchors))) (copy-cells out offsets 1 (first anchor) (second anchor))))))
Provenance
- Generator
- generators/bbbabb45042b/generator.py
- Notes and decisions
- generators/bbbabb45042b/notes.md
- Review label
- reviewed_safe
- Generator SHA-256
- b9553c8ffed1d7272ba2eb7bc5ff04378200dd5125d205c02f22ae1e7cbfb865
- Rule hash
- 6f5eebde1e2e
- Sources
- bank:b4ec712e8849
- Lesson seeds
- 20261108, 20261109, 20261110, 20261111, 20261112
- Reproduce lesson 1
arcpuzzles generate bbbabb45042b --count 1 --seed 20261108 --test 1