← a06827026857 · a0c86a1cb81e →

a0c6005765ee

Project each external color-7 marker through its complete color-5 frame as an interior color-3 stripe.

frame detectioninterior row/column fillrelative position

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 ((frames
          (filter
            (lambda (obj)
              (let* ((bb (obj-bbox obj))
                     (r0 (first bb))
                     (c0 (second bb))
                     (r1 (third bb))
                     (c1 (fourth bb)))
                (and (= (obj-color obj) 5)
                     (all?
                       (lambda (p)
                         (let ((pr (fst p)) (pc (snd p)))
                           (= (cell-at g pr pc) 5)))
                       (filter
                         (lambda (p)
                           (let ((pr (fst p)) (pc (snd p)))
                             (or (= pr r0) (= pr r1) (= pc c0) (= pc c1))))
                         (positions-in-rect r0 c0 r1 c1))))))
            (objects g 0))))
    (grid-from-fn h w
      (lambda (r c)
        (let ((v (cell-at g r c)))
          (if (any?
                (lambda (obj)
                  (let* ((bb (obj-bbox obj))
                         (r0 (first bb))
                         (c0 (second bb))
                         (r1 (third bb))
                         (c1 (fourth bb)))
                    (and (> r r0) (< r r1) (> c c0) (< c c1)
                         (or
                           (and (> r0 0) (= (cell-at g (- r0 1) c) 7))
                           (and (< r1 (- h 1)) (= (cell-at g (+ r1 1) c) 7))
                           (and (> c0 0) (= (cell-at g r (- c0 1)) 7))
                           (and (< c1 (- w 1)) (= (cell-at g r (+ c1 1)) 7))))))
                frames)
              3
              v))))))

Provenance

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