← 9bbc588810ae · 9bde2c3e0346 →

9bd5d9c04dd8

A zero-background grid contains 2–4 orthogonally isolated 3×3 tiles. Every tile is filled by color 1 and one shared nonzero fill color, and the color-1 counts are distinct. Return the tile with the most color-1 cells.

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))) (let* ((candidates (for*/list ((r (range 0 (- h 2))) (c (range 0 (- w 2))) #:when (and (!= (at g r c) 0) (!= (at g r (+ c 1)) 0) (!= (at g r (+ c 2)) 0) (!= (at g (+ r 1) c) 0) (!= (at g (+ r 1) (+ c 1)) 0) (!= (at g (+ r 1) (+ c 2)) 0) (!= (at g (+ r 2) c) 0) (!= (at g (+ r 2) (+ c 1)) 0) (!= (at g (+ r 2) (+ c 2)) 0) (or (zero? r) (zero? (at g (- r 1) c))) (or (zero? r) (zero? (at g (- r 1) (+ c 1)))) (or (zero? r) (zero? (at g (- r 1) (+ c 2)))) (or (>= (+ r 3) h) (zero? (at g (+ r 3) c))) (or (>= (+ r 3) h) (zero? (at g (+ r 3) (+ c 1)))) (or (>= (+ r 3) h) (zero? (at g (+ r 3) (+ c 2)))) (or (zero? c) (zero? (at g r (- c 1)))) (or (zero? c) (zero? (at g (+ r 1) (- c 1)))) (or (zero? c) (zero? (at g (+ r 2) (- c 1)))) (or (>= (+ c 3) w) (zero? (at g r (+ c 3)))) (or (>= (+ c 3) w) (zero? (at g (+ r 1) (+ c 3)))) (or (>= (+ c 3) w) (zero? (at g (+ r 2) (+ c 3)))))) (list r c))) (best (let loop ((cs candidates) (best-pos #f) (best-n -1)) (cond ((null? cs) best-pos) (else (let* ((pos (car cs)) (r (first pos)) (c (second pos)) (ones (+ (if (= (at g r c) 1) 1 0) (if (= (at g r (+ c 1)) 1) 1 0) (if (= (at g r (+ c 2)) 1) 1 0) (if (= (at g (+ r 1) c) 1) 1 0) (if (= (at g (+ r 1) (+ c 1)) 1) 1 0) (if (= (at g (+ r 1) (+ c 2)) 1) 1 0) (if (= (at g (+ r 2) c) 1) 1 0) (if (= (at g (+ r 2) (+ c 1)) 1) 1 0) (if (= (at g (+ r 2) (+ c 2)) 1) 1 0)))) (if (> ones best-n) (loop (cdr cs) pos ones) (loop (cdr cs) best-pos best-n))))))) (br (first best)) (bc (second best))) (build-grid 3 3 (r c) (at g (+ br r) (+ bc c)))))))

Provenance

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