← 4a9e2bc51201 · 4b326abc33f4 →

4ac45a758a2e

Count blue(1) cells to choose 0/90/180/270 degrees clockwise, then count red(2) cells to choose no horizontal reflection/reflection. Normalize the magenta(6) template after each transform and stamp it in cyan(8) at the orange(7) anchor, preserving the rest of the input.

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 template (first (sort (filter (lambda (o) (= (obj-color o) 6)) (objects g 0))
                                  (lambda (a b) (> (obj-size a) (obj-size b))))))
    (define (rot90 cells)
      (let ((h (+ 1 (apply max (map first cells)))))
        (normalize-cells (map (lambda (p) (list (second p) (- h 1 (first p)))) cells))))
    (define (rotate cells k)
      (let loop ([i 0] [cur cells])
        (if (= i (modulo k 4)) cur (loop (+ i 1) (rot90 cur)))))
    (define (flip-h cells)
      (let ((w (+ 1 (apply max (map second cells)))))
        (normalize-cells (map (lambda (p) (list (first p) (- w 1 (second p)))) cells))))
    (define base (normalize-cells (obj-cells template)))
    (define rot (- (length (find-color g 1)) 1))
    (define ref (length (find-color g 2)))
    (define shape (if (= ref 2) (flip-h (rotate base rot)) (rotate base rot)))
    (define anchor (first (find-color g 7)))
    (paint-cells g (map (lambda (p) (list (+ (first anchor) (first p)) (+ (second anchor) (second p)))) shape) 8)))

Provenance

Generator
generators/4ac45a758a2e/generator.py
Notes and decisions
generators/4ac45a758a2e/notes.md
Review label
reviewed_safe
Generator SHA-256
12d111d5d8d2dc69d0a46d53e8b1e87e896405f91aa157886605711309e7be3a
Rule hash
6259c8fd93a1
Sources
bank:d3d681cdb82a
Lesson seeds
20261108, 20261109, 20261110, 20261111, 20261112
Reproduce lesson 1
arcpuzzles generate 4ac45a758a2e --count 1 --seed 20261108 --test 1