← c7070676c606 · c753cc4a2652 →

c739fcbc6cbd

Repeat the first two color-major dots as alternating row or column phases, using period twice the selected coordinate separation.

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!
  ;; alt: infer whether the two colored dots define alternating row bands or
  ;;      column bands; then repeat their two phases with period 2*distance.
  (let* ((dots (for*/list ((color (in-list (range 1 10)))
                           (p (in-list (find-color g color))))
                 (list (first p) (second p) color)))
         (a (first dots))
         (b (second dots))
         (r1 (first a)) (c1 (second a)) (color1 (third a))
         (r2 (first b)) (c2 (second b)) (color2 (third b))
         (dr (abs (- r2 r1)))
         (dc (abs (- c2 c1))))
    (define (phase x x1 x2 period)
      (cond ((zero? (mod (- x x1) period)) color1)
            ((zero? (mod (- x x2) period)) color2)
            (else 0)))
    (if (or (zero? dc) (and (> dr 0) (< dr dc)))
        (cellmap g (r c v)
          (if (< r (min r1 r2)) 0 (phase r r1 r2 (* 2 dr))))
        (cellmap g (r c v)
          (if (< c (min c1 c2)) 0 (phase c c1 c2 (* 2 dc)))))))

Provenance

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