← 3dc5b297cfa2 · 3e2b303f4cf7 →

3e0aef964b9e

A strict-mode background surrounds two non-background colours. One colour forms two or three separated convex-hull objects; exactly one object has K background cells inside its convex hull. The other colour contributes exactly K donor cells, which may be connected, scattered, or mixed. Erase all donor cells and fill only the matching object's convex-hull gap. A three-profile schedule varies donor connectivity, hull geometry, object size, and colour-role order. Dense profiles include a side gap outside horizontal row spans, so a canonical-fitting interpolation shortcut is contradicted even after any one pair is held out.

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! (lambda (g)
         (let* ((h (rows g))
                (w (cols g)))
           (let* ((bg (mode g -1))
                  (colors (filter (lambda (c) (and (!= c bg) (> (count-color g c) 0)))
                                  (range 0 10))))
             (define (missing-cells obj)
               (let* ((mask (convex-hull-fill (cellmap g (r c v) 0) (obj-cells obj) 1))
                      (bb (obj-bbox obj))
                      (r0 (fst bb))
                      (c0 (snd bb))
                      (r1 (nth bb 2))
                      (c1 (nth bb 3)))
                 (reduce (lambda (acc r)
                           (reduce (lambda (a c)
                                     (if (and (= (at mask r c) 1) (= (at g r c) bg))
                                         (append a (list (list r c)))
                                         a))
                                   acc
                                   (range c0 (+ c1 1))))
                         (list)
                         (range r0 (+ r1 1)))))
             (define (candidate target donor)
               (let* ((donor-count (count-color g donor))
                      (objs (filter (lambda (o) (= (obj-color o) target))
                                    (objects-8 g bg)))
                      (scored (filter (lambda (item)
                                        (and
                                          (> (length (snd item)) 0)
                                          (= (length (snd item)) donor-count)))
                                      (map (lambda (o) (list o (missing-cells o))) objs))))
                 (if (empty? scored) #f (fst scored))))
             (if (< (length colors) 2)
                 g
                 (let* ((c1 (fst colors))
                        (c2 (snd colors))
                        (cand1 (candidate c1 c2))
                        (cand2 (candidate c2 c1))
                        (donor (if cand1 c2 c1))
                        (cand (if cand1 cand1 cand2)))
                   (if cand
                       (let* ((missing (snd cand))
                              (cleared (paint-cells g (find-color g donor) bg)))
                         (paint-cells cleared missing donor))
                       g)))))))

Provenance

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