← d306f84259e3 · d349f4dfe492 →

d336f5fb2da4

A zero-background grid contains an arbitrary connected blue source shape, one control singleton (4 identity, 6 clockwise rotation, 7 top/bottom reflection), and red/green singleton markers defining a nonzero vector. Normalize the transformed source and stamp it in cyan from red along the red-to-green vector until the next complete copy leaves the grid.

parametric family

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 (rot cells) (norm (rotate-cells-cw cells)))
    (define (flip-h cells)
      (let* ((n (norm cells))
             (rmax (apply max (map first n))))
        (norm (map (lambda (p) (list (- rmax (first p)) (second p))) n))))
    (define shape0 (norm (find-color g 1)))
    (define ctrl (cond [(not (empty? (find-color g 4))) 4]
                       [(not (empty? (find-color g 6))) 6]
                       [(not (empty? (find-color g 7))) 7]
                       [else 4]))
    (define cells (cond [(= ctrl 6) (rot shape0)]
                        [(= ctrl 7) (flip-h shape0)]
                        [else shape0]))
    (define start (first (find-color g 2)))
    (define nxt (first (find-color g 3)))
    (define dr (- (first nxt) (first start)))
    (define dc (- (second nxt) (second start)))
    (let loop ((ar (first start)) (ac (second start)) (out (empty-grid (rows g) (cols g) 0)))
      (let ((placed (map (lambda (p) (list (+ ar (first p)) (+ ac (second p)))) cells)))
        (if (all? (lambda (p) (pos-in-bounds? p (rows g) (cols g))) placed)
            (loop (+ ar dr) (+ ac dc) (paint-cells out placed 8))
            out)))))

Provenance

Generator
generators/d336f5fb2da4/generator.py
Notes and decisions
generators/d336f5fb2da4/notes.md
Review label
reviewed_safe
Generator SHA-256
fde95f52a4b97935d4fbe60012de68344da90e65ad1a0ca3b1e1109d510389a8
Rule hash
722859cc9e88
Sources
bank:b18129f611a9
Lesson seeds
20261108, 20261109, 20261110, 20261111, 20261112
Reproduce lesson 1
arcpuzzles generate d336f5fb2da4 --count 1 --seed 20261108 --test 1