← 1e7c25b06dac · 1e92a4eef51d →

1e7eb285f158

A 12..21 by 12..21 grid contains one or, for tie-break lessons, two largest all-zero rectangles at least 3x3 amid separated micro-block zero noise and one or two nonzero texture colors. Enumerate all all-zero rectangles with both dimensions at least three; choose maximum area, breaking ties by top row then left column; paint only that rectangle's strict one-cell-inset interior cyan (8).

parametric family

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! (lambda (g)
         (let* ((h (rows g))
                (w (cols g)))
           (begin
             (define (zero-rect? r0 c0 r1 c1)
               (all? (lambda (r)
                       (all? (lambda (c) (zero? (at g r c))) (range c0 (+ c1 1))))
                     (range r0 (+ r1 1))))
             (define rects
               (filter (lambda (x)
                         (zero-rect? (second x) (third x) (fourth x) (fifth x)))
                       (flatmap (lambda (r0)
                                  (flatmap (lambda (c0)
                                             (flatmap (lambda (r1)
                                                        (map (lambda (c1)
                                                               (list (* (+ 1 (- r1 r0))
                                                                        (+ 1 (- c1 c0)))
                                                                     r0
                                                                     c0
                                                                     r1
                                                                     c1))
                                                             (range (+ c0 2) w)))
                                                      (range (+ r0 2) h)))
                                           (range 0 w)))
                                (range 0 h))))
             (if (null? rects)
                 g
                 (let* ((best (first (sort rects
                                           (lambda (a b)
                                             (or
                                               (> (first a) (first b))
                                               (and
                                                 (= (first a) (first b))
                                                 (< (second a) (second b)))
                                               (and
                                                 (= (first a) (first b))
                                                 (= (second a) (second b))
                                                 (< (third a) (third b))))))))
                        (r0 (second best))
                        (c0 (third best))
                        (r1 (fourth best))
                        (c1 (fifth best)))
                   (reduce (lambda (acc r)
                             (reduce (lambda (a c) (set-cell a r c 8))
                                     acc
                                     (range (+ c0 1) c1)))
                           g
                           (range (+ r0 1) r1))))))))

Provenance

Generator
generators/1e7eb285f158/generator.py
Notes and decisions
generators/1e7eb285f158/notes.md
Review label
reviewed_safe
Generator SHA-256
a934ccbb7d60b6e20c726c87b264b60e23ba8cd76b2a5858b2b321f85c2c9486
Rule hash
d40abed3e512
Sources
training
Lesson seeds
20261108, 20261109, 20261110, 20261111, 20261112
Reproduce lesson 1
arcpuzzles generate 1e7eb285f158 --count 1 --seed 20261108 --test 1