← 4e6862c442fd · 4ebdc8d865ce →

4e79c276ce9d

A canonical-scale zero-background grid contains four monochrome four-connected objects with one uniquely smallest by cell count. Crop that component exactly to its bbox. A six-step schedule preserves exact canonical dimension/palette profiles and repeatedly contrasts cell count with bbox area, color frequency, color grouping, 8-connectivity, multicolor connectivity, solid-bbox output, and scan-order selection.

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 (has-cell? cell cells)
      (any? (lambda (p) (and (= (fst p) (fst cell)) (= (snd p) (snd cell)))) cells))
    (let* ((objs
             (sort
               (objects g 0)
               (lambda (a b)
                 (let ((sa (obj-size a))
                       (sb (obj-size b))
                       (ba (obj-bbox a))
                       (bb (obj-bbox b)))
                   (or (< sa sb)
                       (and (= sa sb)
                            (or (< (first ba) (first bb))
                                (and (= (first ba) (first bb))
                                     (< (second ba) (second bb))))))))))
           (target (first objs))
           (cells (normalize-cells (obj-cells target)))
           (out-h (+ (max-list (map fst cells)) 1))
           (out-w (+ (max-list (map snd cells)) 1))
           (color (obj-color target)))
      (grid-from-fn out-h out-w
        (lambda (r c)
          (if (has-cell? (list r c) cells) color 0))))))

Provenance

Generator
generators/4e79c276ce9d/generator.py
Notes and decisions
generators/4e79c276ce9d/notes.md
Review label
reviewed_safe
Generator SHA-256
c0a660b4ab4b53fb8c3d6c5f1709e62af833f12baddd403b355d7721242c4967
Rule hash
5d74c60efd43
Sources
bank:f6c2fd26c5e5
Lesson seeds
20261108, 20261109, 20261110, 20261111, 20261112
Reproduce lesson 1
arcpuzzles generate 4e79c276ce9d --count 1 --seed 20261108 --test 1