← ec5fd031b9e1 · ec9340d27f7e →

ec65f8d7bf45

Place one singleton paint-color key at a canvas corner and one closed rectangular frame of the more frequent nonzero color, with at least one blank cell between the frame and every canvas edge. The output preserves the scene and fills the frame interior with a paint-color checkerboard starting at the interior top-left cell.

frame detectionpalette marker useparity

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* ((colors (grid-colors g 0))
         (entries (map (lambda (color)
                         (list color (count-where (lambda (cell) (= (third cell) color)) (grid-cells g))))
                       colors))
         (frame-color (first (first (sort entries (lambda (a b) (> (second a) (second b)))))))
         (paint-color (first (first (sort entries (lambda (a b) (< (second a) (second b)))))))
         (bb (bbox-of-cells (find-color g frame-color))))
    (for*/fold ([out g])
               ([r (in-range (+ (first bb) 1) (third bb))]
                [c (in-range (+ (second bb) 1) (fourth bb))])
      (set-cell out r c
        (if (= (modulo (+ (- r (+ (first bb) 1)) (- c (+ (second bb) 1))) 2) 0)
            paint-color
            0)))))

Provenance

Generator
generators/ec65f8d7bf45/generator.py
Notes and decisions
generators/ec65f8d7bf45/notes.md
Review label
reviewed_safe
Generator SHA-256
a8cacf1380ec1c06f7cccf044279d6c901d974ecb146a0f2fd8955ab21602970
Rule hash
7cc365f60685
Sources
bank:9a66c53abf7f
Lesson seeds
20261108, 20261109, 20261110, 20261111, 20261112
Reproduce lesson 1
arcpuzzles generate ec65f8d7bf45 --count 1 --seed 20261108 --test 1