← 0ab5dc1f5386 · 0ae119475d57 →

0ae0d5780419

Two full-height color-5 columns delimit A, B, and C. Crop all three; take the first exact colored transform in the order identity, rotate-cw, rotate-180, transpose, flip-lr, flip-ud that maps A to B, or identity if none matches; apply that code to C. Four scheduled demonstrations expose priority ambiguity, color-sensitive matching, no-match fallback, and a unique ordinary transform.

parametric familyanalogypanel parsingtransform inference

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).

Reference rule (Racket)

(rule!
  (let ((dummy 0))
    ;; Full-height 5-columns delimit A, B, and C; panel padding is irrelevant.
    (define (split-panels grid)
      (let ((seps (filter (lambda (c) (all? (lambda (r) (= (at grid r c) 5))
                                                   (range 0 (rows grid))))
                          (range 0 (cols grid)))))
        (let loop ([remaining (append seps (list (cols grid)))]
                   [start 0]
                   [panels (list)])
          (if (empty? remaining)
              (reverse panels)
              (let ((stop (first remaining)))
                (loop (rest remaining)
                      (+ stop 1)
                      (if (> stop start)
                          (cons (subgrid grid 0 start
                                         (- (rows grid) 1) (- stop 1))
                                panels)
                          panels)))))))
    ;; Code order is semantic: the first exact colored A->B match wins.
    (define (transform-code grid code)
      (cond [(= code 1) grid]
            [(= code 2) (rotate-cw grid)]
            [(= code 3) (rotate-180 grid)]
            [(= code 4) (transpose grid)]
            [(= code 5) (flip-lr grid)]
            [else (flip-ud grid)]))
    (let* ((panels (split-panels g))
           (a (crop-to-content (first panels)))
           (b (crop-to-content (second panels)))
           (c (crop-to-content (third panels)))
           (code (let ((hit (find-first
                              (lambda (t) (equal? (transform-code a t) b))
                              (list 1 2 3 4 5 6))))
                   ;; No exact match is an intentional identity fallback.
                   (if hit hit 1))))
      (transform-code c code))))

Provenance

Generator
generators/0ae0d5780419/generator.py
Notes and decisions
generators/0ae0d5780419/notes.md
Review label
reviewed_safe
Generator SHA-256
fa57b0e1c5cf232e6528e4e122a1d5acdb0c621b44f5bfb9096c364362832a04
Rule hash
2374cac44014
Sources
bank:dc02f6f7c147
Lesson seeds
20261108, 20261109, 20261110, 20261111, 20261112
Reproduce lesson 1
arcpuzzles generate 0ae0d5780419 --count 1 --seed 20261108 --test 1