← public_eval_7c66cb00 · public_eval_800d221b →

public_eval_7ed72f31

Copy local objects across their red mirror line or red half-turn center.

parametric family

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 ()
   ;; Red line markers are mirror axes; a single red cell is a half-turn
   ;; center. Sources belong to their local 8-connected multicolor group,
   ;; NOT to all objects of the same color. Preserve all observed cells.
   (define turn-lines #f)
   (define bg (mode g -1))
   (define groups (objects-multicolor g bg))
   (for/fold ([out g]) ([obj groups])
     (define reds (filter (lambda (p) (= (at g (first p) (second p)) 2)) (obj-cells obj)))
     (define source (filter (lambda (p) (not (= (at g (first p) (second p)) 2))) (obj-cells obj)))
     (if (or (null? reds) (null? source)) out
         (let* ([box (bbox-of-cells reds)]
                [r0 (first box)] [c0 (second box)] [r1 (third box)] [c1 (fourth box)]
                [point (= (length reds) 1)]
                [horizontal (= r0 r1)]
                [center-r (+ r0 r1)] [center-c (+ c0 c1)])
           ;; A has recovered source cells and marker geometry/midpoint.
           ;; B consumes that geometry to place the newly copied source.
           (for/fold ([result out]) ([p source])
             (define r (first p))
             (define c (second p))
             (define rr (if (or turn-lines point horizontal) (- center-r r) r))
             (define cc (if (or turn-lines point (not horizontal)) (- center-c c) c))
             (if (and (in-bounds? rr cc h w) (= (at g rr cc) bg))
                 (set-cell result rr cc (at g r c)) result)))))))

Provenance

Generator
generators/public_eval_7ed72f31/generator.py
Notes and decisions
generators/public_eval_7ed72f31/notes.md
Review label
reviewed_safe
Generator SHA-256
dd8c1a332721818f8fb4cd9c561499778829c4ed9d1a0b3c7d775a61f7f29fee
Rule hash
b77bd7f39909
Sources
evaluation, public_eval:7ed72f31
Lesson seeds
20261108, 20261109, 20261110, 20261111, 20261112
Reproduce lesson 1
arcpuzzles generate public_eval_7ed72f31 --count 1 --seed 20261108 --test 1