← 41851e57e1a5 · 41a5c2fcf25a →
419ed66194f2
Pair each isolated one-cell color anchor with that color's connected multi-cell object, then stamp the object's bounding-box-relative shape at the anchor on a blank grid.
color pairingobject stampingtranslation
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)) (let ((colors (remove-duplicates (map obj-color (objects g 0))))) (for/fold ((out (empty-grid (rows g) (cols g) 0))) ((color (in-list colors))) (let* ((lst (filter (lambda (obj) (= (obj-color obj) color)) (objects g 0))) (anchors (filter (lambda (obj) (= (obj-size obj) 1)) lst)) (objs (filter (lambda (obj) (> (obj-size obj) 1)) lst))) (if (and (not (empty? anchors)) (not (empty? objs))) (let* ((anchor (first (obj-cells (first anchors)))) (obj (first (sort objs (lambda (a b) (> (obj-size a) (obj-size b)))))) (r0 (obj-r1 obj)) (c0 (obj-c1 obj))) (for/fold ((acc out)) ((p (in-list (obj-cells obj)))) (let ((rr (+ (first anchor) (- (first p) r0))) (cc (+ (second anchor) (- (second p) c0)))) (if (in-bounds? rr cc (rows g) (cols g)) (set-cell acc rr cc color) acc)))) out))))))
Provenance
- Generator
- generators/419ed66194f2/generator.py
- Notes and decisions
- generators/419ed66194f2/notes.md
- Review label
- reviewed_safe
- Generator SHA-256
- 15eba3d46c6b9cc618fb1d229cc6581dfe2a4d373cfe93a00da8c47ea42304b9
- Rule hash
- 80ec33fe7d6c
- Sources
- bank:76c10b1ad4b3
- Lesson seeds
- 20261108, 20261109, 20261110, 20261111, 20261112
- Reproduce lesson 1
arcpuzzles generate 419ed66194f2 --count 1 --seed 20261108 --test 1