← ae148d180b74 · aea1d569d78b →
ae7376fe4957
Use the unique blue(1) cell as the source and the first red(2) cell in row-major order as the target. Translate every other non-zero cell by the source-to-target vector, including later red cells, clip translated cells at the canvas boundary, then crop the surviving payload tightly.
cropmarkersrelative_positiontranslation
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* ((src (first (find-color g 1)))
(tgt (first (find-color g 2)))
(motif (filter (lambda (cell)
(and (not (= (third cell) 0))
(not (and (= (first cell) (first src)) (= (second cell) (second src))))
(not (and (= (first cell) (first tgt)) (= (second cell) (second tgt))))))
(grid-cells g)))
(painted
(for/fold ([out (empty-grid (rows g) (cols g) 0)]) ([cell (in-list motif)])
(let ((rr (+ (first tgt) (- (first cell) (first src))))
(cc (+ (second tgt) (- (second cell) (second src)))))
(if (in-bounds? rr cc (rows g) (cols g))
(set-cell out rr cc (third cell))
out)))))
(crop-to-content painted 0)))Provenance
- Generator
- generators/ae7376fe4957/generator.py
- Notes and decisions
- generators/ae7376fe4957/notes.md
- Review label
- reviewed_safe
- Generator SHA-256
- f77778526971901edf0623c1446ed4196ac9e61543ca08839d363cb6c0e09b17
- Rule hash
- 072dc737db06
- Sources
- bank:d7b013a675b4
- Lesson seeds
- 20261108, 20261109, 20261110, 20261111, 20261112
- Reproduce lesson 1
arcpuzzles generate ae7376fe4957 --count 1 --seed 20261108 --test 1