← dd038eb3d459 · dd6724624b9f →

dd3fa537fa22

On a zero background, keep only complete cyan(8) rectangular frames. Treat each filled non-cyan rectangle as an insert. If an insert's exact height and width equal a surviving frame's interior dimensions, fill that interior with the insert color. Clear source inserts, unmatched inserts, and incomplete cyan frame candidates. Generated lessons vary object order and include a canonical-style occluded candidate.

dimensionsframesmatchingplacement

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 (frame? obj)
      (let* ((r1 (obj-r1 obj)) (c1 (obj-c1 obj))
             (r2 (obj-r2 obj)) (c2 (obj-c2 obj))
             (h (+ 1 (- r2 r1))) (w (+ 1 (- c2 c1)))
             (perim (+ (* 2 w) (* 2 (- h 2)))))
        (and (>= h 3) (>= w 3)
             (= (obj-size obj) perim)
             (all? (lambda (p)
                     (or (= (first p) r1) (= (first p) r2)
                         (= (second p) c1) (= (second p) c2)))
                   (obj-cells obj)))))
    (define frames (filter frame? (objects (keep-only g 8) 0)))
    (define inserts
      (filter (lambda (obj) (and (not (= (obj-color obj) 8)) (filled? obj))) (objects g 0)))
    (define seeded (for/fold ([out (empty-grid (rows g) (cols g) 0)]) ([fr (in-list frames)])
                     (paint-cells out (obj-cells fr) 8)))
    (for/fold ([out seeded]) ([ins (in-list inserts)])
      (let* ((target (find-first (lambda (fr)
                                   (and (= (obj-h ins) (- (obj-h fr) 2))
                                        (= (obj-w ins) (- (obj-w fr) 2))))
                                 frames)))
        (if (eq? target #f)
            out
            (paint-cells out
                         (positions-in-rect (+ (obj-r1 target) 1) (+ (obj-c1 target) 1)
                                            (- (obj-r2 target) 1) (- (obj-c2 target) 1))
                         (obj-color ins)))))))

Provenance

Generator
generators/dd3fa537fa22/generator.py
Notes and decisions
generators/dd3fa537fa22/notes.md
Review label
reviewed_safe
Generator SHA-256
df7eaa226d63f01ec9526b0ff6e20e495cb6404074257f3e290bd7cfd286222a
Rule hash
4ccb52845749
Sources
bank:d7b013a675b4
Lesson seeds
20261108, 20261109, 20261110, 20261111, 20261112
Reproduce lesson 1
arcpuzzles generate dd3fa537fa22 --count 1 --seed 20261108 --test 1