← 2d59c1b766d5 · 2da4094bc0e1 →

2d5acf84dd20

A binary grid contains 2-4 complete blue rectangular outlines, strictly nested with at least one blank cell between adjacent frames. Recolor the outermost frame red(2), the next green(3), then 4 and 5 moving inward, leaving all background cells black(0).

nested containmentorderingrecoloring

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* ((mask (grid-from-fn (rows g) (cols g)
                 (lambda (r c) (if (= (at g r c) 0) 0 1))))
         (objs (sort (objects mask 0)
                     (lambda (a b)
                       (> (* (obj-h a) (obj-w a)) (* (obj-h b) (obj-w b)))))))
    (for/fold ([out (empty-grid (rows g) (cols g) 0)])
              ([obj (in-list objs)]
               [i (in-naturals 2)])
      (paint-cells out (obj-cells obj) i))))

Provenance

Generator
generators/2d5acf84dd20/generator.py
Notes and decisions
generators/2d5acf84dd20/notes.md
Review label
reviewed_safe
Generator SHA-256
41632e8f4cf17e612feff15a8723b35690448652e40a3e14ebce64c2d135eada
Rule hash
9cbecad9efb8
Sources
bank:f2c80d62966a
Lesson seeds
20261108, 20261109, 20261110, 20261111, 20261112
Reproduce lesson 1
arcpuzzles generate 2d5acf84dd20 --count 1 --seed 20261108 --test 1