← c53c24435976 · c59d7541b22e →

c5905adcd2cb

Clear all nine lattice interiors, then copy the marker's 3x3 source pattern to the macro-cell encoded by the marker's local position.

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! (lambda (g)
         (let* ((four (first (find-color g 4)))
                (fr (first four))
                (fc (second four))
                (src-r1 (* (quotient fr 4) 4))
                (src-c1 (* (quotient fc 4) 4))
                (dst-r1 (* (- fr src-r1) 4))
                (dst-c1 (* (- fc src-c1) 4))
                (src-cells (filter (lambda (rc)
                                     (let ((v (at g (first rc) (second rc))))
                                       (and (!= v 0) (!= v 5))))
                                   (positions-in-rect src-r1
                                                      src-c1
                                                      (+ src-r1 2)
                                                      (+ src-c1 2))))
                (out-g (cellmap g (r c v) (if (= v 5) 5 0))))
           (reduce (lambda (gg p)
                     (let* ((r (first p))
                            (c (second p))
                            (nr (+ dst-r1 (- r src-r1)))
                            (nc (+ dst-c1 (- c src-c1))))
                       (set-cell gg nr nc (at g r c))))
                   out-g
                   src-cells))))

Provenance

Generator
generators/c5905adcd2cb/generator.py
Notes and decisions
generators/c5905adcd2cb/notes.md
Review label
reviewed_safe
Generator SHA-256
5d9cebc09f84a2107cc85ebac93abcdad80804818eaec6f3f0a5c501c1b67cfa
Rule hash
93e6c6c4b04f
Sources
augmented, training
Lesson seeds
20261108, 20261109, 20261110, 20261111, 20261112
Reproduce lesson 1
arcpuzzles generate c5905adcd2cb --count 1 --seed 20261108 --test 1