← 3977ec54e4a0 · 39abddf600eb →
399643e39cf6
Two row-major color-9 markers define a translation vector. Remove both markers and copy only the smallest same-color 4-connected object by that vector; ties are resolved by top row, left column, then color.
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* ((markers (find-color g 9))
(p1 (first markers))
(p2 (second markers))
(dr (- (fst p2) (fst p1)))
(dc (- (snd p2) (snd p1)))
(without-markers (map-grid g (lambda (r c v) (if (= v 9) 0 v))))
(objs (objects without-markers 0))
(smallest
(first
(sort objs
(lambda (a b)
(let ((ba (obj-bbox a))
(bb (obj-bbox b)))
(cond
[(not (= (obj-size a) (obj-size b))) (< (obj-size a) (obj-size b))]
[(not (= (first ba) (first bb))) (< (first ba) (first bb))]
[(not (= (second ba) (second bb))) (< (second ba) (second bb))]
[else (< (obj-color a) (obj-color b))])))))))
(paint-cells
without-markers
(map (lambda (p) (list (+ (fst p) dr) (+ (snd p) dc))) (obj-cells smallest))
(obj-color smallest))))Provenance
- Generator
- generators/399643e39cf6/generator.py
- Notes and decisions
- generators/399643e39cf6/notes.md
- Review label
- reviewed_safe
- Generator SHA-256
- aa430fdc38ba0aa31ddde142ede83c234679faddc8e7c612e1a0473d404090e5
- Rule hash
- 00eb76bc4fb4
- Sources
- bank:765a70430bc9
- Lesson seeds
- 20261108, 20261109, 20261110, 20261111, 20261112
- Reproduce lesson 1
arcpuzzles generate 399643e39cf6 --count 1 --seed 20261108 --test 1