← 3ef9eae12446 · 3f26d45b9f51 →

3eff273eeb83

The input contains exactly one color-5 pivot and a contiguous one-sided horizontal or vertical line of one to four color-2 cells attached to it. Recolor the original 2-line to 3, then rotate its offsets 90 degrees clockwise around the pivot and paint that copy color 2; keep the pivot 5.

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* ((h (rows g))
                (w (cols g)))
           (let* ((five (first (find-color g 5)))
                  (r5 (fst five))
                  (c5 (snd five))
                  (twos (map (lambda (cell) (list (- (fst cell) r5) (- (snd cell) c5)))
                             (find-color g 2))))
             (cellmap g
                      (r c v)
                      (if (and (= r r5) (= c c5))
                          5
                          (if (for/or ((d twos))
                                      (and (= r (+ r5 (fst d))) (= c (+ c5 (snd d)))))
                              3
                              (if (for/or ((d twos))
                                          (and
                                            (= r (+ r5 (snd d)))
                                            (= c (- c5 (fst d)))))
                                  2
                                  0))))))))

Provenance

Generator
generators/3eff273eeb83/generator.py
Notes and decisions
generators/3eff273eeb83/notes.md
Review label
reviewed_safe
Generator SHA-256
8a68b411365e9db8d1041793060404b635e1001543759091d4dc6111ce819d29
Rule hash
3ac43b22416f
Sources
training
Lesson seeds
20261108, 20261109, 20261110, 20261111, 20261112
Reproduce lesson 1
arcpuzzles generate 3eff273eeb83 --count 1 --seed 20261108 --test 1