← f4a7ad69b9f2 · f4dc936dfcbb →

f4d4fb4404c6

One or two separated 4x4 hollow frames are selected by color-1 strips on the grid edge. Each marker repeats its overlapping frame toward that edge in 4-cell steps, clipping the final copy. A four-profile cycle adds a combined witness so every three-of-four lesson rotation teaches both partial-overlap selection and per-frame color.

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!
 ;; Hollow 4x4 frames sit on a blank field; blue(1) strips on the grid
 ;; edges are extension markers. Each marker points at the frame whose
 ;; span it overlaps: that frame repeats as a chain of 4x4 frames
 ;; marching to the marked edge (clipped at the border). Output the
 ;; frames plus their chains on a clean background.
 (lambda (g)
   (let ()
     (define frames  ;; (color r1 c1 r2 c2) per hollow 4x4 (12 cells)
       (map (lambda (o) (list (obj-color o) (obj-r1 o) (obj-c1 o)
                              (obj-r2 o) (obj-c2 o)))
            (filter (lambda (o) (and (= (obj-h o) 4) (= (obj-w o) 4)
                                     (= (obj-size o) 12)))
                    (objects-multicolor g 0))))
     (define markers  ;; (dir rmin rmax cmin cmax) per blue strip
       (map (lambda (o)
              (list (cond ((zero? (obj-r1 o)) 'up)
                          ((= (obj-r2 o) (- h 1)) 'down)
                          ((zero? (obj-c1 o)) 'left)
                          ((= (obj-c2 o) (- w 1)) 'right)
                          (else 'unknown))
                    (obj-r1 o) (obj-r2 o) (obj-c1 o) (obj-c2 o)))
            (filter (lambda (o) (= (obj-color o) 1)) (objects g 0))))
     (define (draw-frame out color r1 c1 r2 c2)
       (for/fold ((acc out))
                 ((p (filter (lambda (rc) (or (= (first rc) r1)
                                              (= (first rc) r2)
                                              (= (second rc) c1)
                                              (= (second rc) c2)))
                             (positions-in-rect r1 c1 r2 c2))))
         (if (in-bounds? (first p) (second p) h w)
             (set-cell acc (first p) (second p) color)
             acc)))
     (define (overlap? lo1 hi1 lo2 hi2)
       (not (or (< hi2 lo1) (< hi1 lo2))))
     (define (frame-for m)
       (find (lambda (f)
               (cond ((member? (first m) (list 'up 'down))
                      (overlap? (fourth m) (fifth m)
                                (third f) (fifth f)))
                     ((member? (first m) (list 'left 'right))
                      (overlap? (second m) (third m)
                                (second f) (fourth f)))
                     (else #f)))
             frames))
     (define (extend out m)
       (let ((f (frame-for m)) (dir (first m)))
         (cond ((eq? dir 'up)
                (let loop ((r (second f)) (acc out))
                  (if (< (- r 1) 0)
                      acc
                      (loop (- r 4)
                            (draw-frame acc (first f) (- r 4) (third f)
                                        (- r 1) (fifth f))))))
               ((eq? dir 'down)
                (let loop ((r (fourth f)) (acc out))
                  (if (>= (+ r 1) h)
                      acc
                      (loop (+ r 4)
                            (draw-frame acc (first f) (+ r 1) (third f)
                                        (+ r 4) (fifth f))))))
               ((eq? dir 'left)
                (let loop ((c (third f)) (acc out))
                  (if (< (- c 1) 0)
                      acc
                      (loop (- c 4)
                            (draw-frame acc (first f) (second f) (- c 4)
                                        (fourth f) (- c 1))))))
               ((eq? dir 'right)
                (let loop ((c (fifth f)) (acc out))
                  (if (>= (+ c 1) w)
                      acc
                      (loop (+ c 4)
                            (draw-frame acc (first f) (second f) (+ c 1)
                                        (fourth f) (+ c 4))))))
               (else out))))
     (for/fold ((out (for/fold ((o (empty-grid h w 0)))
                               ((f frames))
                       (draw-frame o (first f) (second f) (third f)
                                   (fourth f) (fifth f)))))
               ((m markers))
       (extend out m)))))

Provenance

Generator
generators/f4d4fb4404c6/generator.py
Notes and decisions
generators/f4d4fb4404c6/notes.md
Review label
reviewed_safe
Generator SHA-256
d5b9411d681caa2bbcb75b27254c86a6d14dfe78dc0225a40658f9b732345680
Rule hash
052ea839cbdd
Sources
augmented, training
Lesson seeds
20261108, 20261109, 20261110, 20261111, 20261112
Reproduce lesson 1
arcpuzzles generate f4d4fb4404c6 --count 1 --seed 20261108 --test 1