← fdffdd0bbde7 · fe54bfae4cee →

fe0dc9f32b7b

Column 0 is a top-to-bottom palette. In the body, color-8 objects whose component size equals their bounding-box perimeter count as rectangular frames; overfilled lookalikes do not. Fill each zero cell by its number of strictly containing qualifying frames, leaving depths beyond the palette unchanged.

parametric familydepth reasoningnested framespalette application

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 palette
      (for/list ([r (in-range (rows g))]
                 #:when (and (not (= (at g r 0) 0)) (not (= (at g r 0) 8))))
        (at g r 0)))
    (define (rect-frame? obj)
      (and (= (obj-color obj) 8)
           (>= (obj-h obj) 3)
           (>= (obj-w obj) 3)
           (= (obj-size obj) (- (* 2 (+ (obj-h obj) (obj-w obj))) 4))))
    (define frames
      (sort (filter rect-frame? (objects g 0))
            (lambda (a b)
              (if (= (obj-r1 a) (obj-r1 b))
                  (< (obj-c1 a) (obj-c1 b))
                  (< (obj-r1 a) (obj-r1 b))))))
    (for*/fold ([out g])
               ([r (in-range (rows g))]
                [c (in-range (cols g))])
      (if (= (at g r c) 0)
          (let ((depth (count-where (lambda (fr)
                                      (and (> r (obj-r1 fr)) (< r (obj-r2 fr))
                                           (> c (obj-c1 fr)) (< c (obj-c2 fr))))
                                    frames)))
            (if (and (> depth 0) (<= depth (length palette)))
                (set-cell out r c (nth palette (- depth 1)))
                out))
          out))))

Provenance

Generator
generators/fe0dc9f32b7b/generator.py
Notes and decisions
generators/fe0dc9f32b7b/notes.md
Review label
reviewed_safe
Generator SHA-256
66f1678df9229df8b7061543edd48a05fe2cb31d16df67b515295b74abdab506
Rule hash
5f1e925f80ea
Sources
bank:be1bc1d91387
Lesson seeds
20261108, 20261109, 20261110, 20261111, 20261112
Reproduce lesson 1
arcpuzzles generate fe0dc9f32b7b --count 1 --seed 20261108 --test 1