← 5cf662353a2a · 5d1263287a4f →

5d0082374b4d

Two or three separated color-1 rectangle frames contain distinct marker colors at their top interior corners; every interior is filled with alternating vertical marker-color stripes starting from the left.

alternating patternframe reasoninginterior fill

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).

Reference rule (Racket)

(rule!
  (let ((dummy 0))
    (define (rect-frame? obj)
      (and (= (obj-color obj) 1)
           (>= (obj-h obj) 3)
           (>= (obj-w obj) 3)
           (= (obj-size obj) (- (* (obj-h obj) (obj-w obj))
                                (* (- (obj-h obj) 2) (- (obj-w obj) 2))))
           (all? (lambda (p)
                   (or (= (first p) (obj-r1 obj))
                       (= (first p) (obj-r2 obj))
                       (= (second p) (obj-c1 obj))
                       (= (second p) (obj-c2 obj))))
                 (obj-cells obj))))
    (define (paint-frame out frame)
      (let ((a (at g (+ (obj-r1 frame) 1) (+ (obj-c1 frame) 1)))
            (b (at g (+ (obj-r1 frame) 1) (- (obj-c2 frame) 1))))
        (for*/fold ([acc out])
                   ([r (in-range (+ (obj-r1 frame) 1) (obj-r2 frame))]
                    [c (in-range (+ (obj-c1 frame) 1) (obj-c2 frame))])
          (set-cell acc r c (if (= (modulo (- c (+ (obj-c1 frame) 1)) 2) 0) a b)))))
    (let ((frames (filter rect-frame? (objects g 0))))
      (for/fold ([out (grid-from-fn (rows g) (cols g)
                         (lambda (r c) (if (= (at g r c) 1) 1 0)))])
                ([frame (in-list frames)])
        (paint-frame out frame)))))

Provenance

Generator
generators/5d0082374b4d/generator.py
Notes and decisions
generators/5d0082374b4d/notes.md
Review label
reviewed_safe
Generator SHA-256
f24326c752e2a0e3d1d38282d5f9da862a7c6e6889a600dcb7ce71f8bc289314
Rule hash
80261197592b
Sources
bank:edd0efb19ea0
Lesson seeds
20261108, 20261109, 20261110, 20261111, 20261112
Reproduce lesson 1
arcpuzzles generate 5d0082374b4d --count 1 --seed 20261108 --test 1