← a3fcfe29ef7e · a4333a244e11 →

a41ff6269d40

A connected color-4 template and 3-4 anchor origins occur on a zero background. On a blank output, stamp the normalized template at every anchor: color 1 unchanged, color 2 reflected left-right, and color 3 reflected up-down. Generated templates make all three transforms visibly distinct, and generated inputs contain every anchor role.

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 ((dummy 0))
    (define (cell<? a b)
      (or (< (first a) (first b))
          (and (= (first a) (first b)) (< (second a) (second b)))))
    (define (norm cells) (sort (normalize-cells cells) cell<?))
    (define (hmirror cells)
      (let* ((n (norm cells)) (cmax (apply max (map second n))))
        (norm (map (lambda (p) (list (first p) (- cmax (second p)))) n))))
    (define (vmirror cells)
      (let* ((n (norm cells)) (rmax (apply max (map first n))))
        (norm (map (lambda (p) (list (- rmax (first p)) (second p))) n))))
    (define template (norm (find-color g 4)))
    (foldl (lambda (anchor out)
             (let* ((color (at g (first anchor) (second anchor)))
                    (shape (cond [(= color 1) template] [(= color 2) (hmirror template)] [else (vmirror template)]))
                    (placed (map (lambda (p) (list (+ (first anchor) (first p)) (+ (second anchor) (second p)))) shape)))
               (paint-cells out placed 4)))
           (empty-grid (rows g) (cols g) 0)
           (filter (lambda (p) (let ((v (at g (first p) (second p)))) (or (= v 1) (= v 2) (= v 3)))) (grid-positions g)))))

Provenance

Generator
generators/a41ff6269d40/generator.py
Notes and decisions
generators/a41ff6269d40/notes.md
Review label
reviewed_safe
Generator SHA-256
062022af105768f36ba1765278dd9792f991b83eff36bf06b77523d368d915dd
Rule hash
9011a3cbeac9
Sources
bank:38166e88069b
Lesson seeds
20261108, 20261109, 20261110, 20261111, 20261112
Reproduce lesson 1
arcpuzzles generate a41ff6269d40 --count 1 --seed 20261108 --test 1