← 99d71aabd753 · 99f58784e7a0 →

99e7ba062bec

A 5x17 zero-background grid contains three cropped shape panels separated by blank columns. Panels A and B share one color; panel C uses a distinct color. Infer the first transform in code order {identity, rotate-cw, rotate-180, rotate-ccw, flip-lr, flip-ud, transpose} that maps A to B, then apply it to C and preserve C's color. Ordinary generated examples make the A->B transform unique, make C discriminate all seven transforms, vary connectedness, and cover every branch in each seven-sample window.

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))
    (define (apply-cmd grid code)
      (cond [(= code 1) grid]
            [(= code 2) (rotate-cw grid)]
            [(= code 3) (rotate-180 grid)]
            [(= code 4) (rotate-ccw grid)]
            [(= code 5) (flip-lr grid)]
            [(= code 6) (flip-ud grid)]
            [else (transpose grid)]))
    (define (zero-col? grid c)
      (all? (lambda (r) (= (at grid r c) 0)) (range 0 (rows grid))))
    (define (split-panels grid)
      (let loop ([c 0] [panels (list)])
        (cond [(>= c (cols grid)) (reverse panels)]
              [(zero-col? grid c) (loop (+ c 1) panels)]
              [else
               (let scan ([stop c])
                 (if (or (>= stop (cols grid)) (zero-col? grid stop))
                     (loop (+ stop 1)
                           (cons (subgrid grid 0 c (- (rows grid) 1) (- stop 1)) panels))
                     (scan (+ stop 1))))])))
    (let* ((panels (map crop-to-content (split-panels g)))
           (a (first panels))
           (b (second panels))
           (c (third panels))
           (code (first (filter (lambda (k) (equal? (crop-to-content (apply-cmd a k)) b))
                                (range 1 8)))))
      (crop-to-content (apply-cmd c code)))))

Provenance

Generator
generators/99e7ba062bec/generator.py
Notes and decisions
generators/99e7ba062bec/notes.md
Review label
reviewed_safe
Generator SHA-256
f6228ce86c6cd75049ee0ada2dddc3e9a0223d974a3d4a3e59bc40b3d477bab7
Rule hash
e3f7daceeedf
Sources
bank:fd166f81148e
Lesson seeds
20261108, 20261109, 20261110, 20261111, 20261112
Reproduce lesson 1
arcpuzzles generate 99e7ba062bec --count 1 --seed 20261108 --test 1