← 31b8bedd699a · 31e43af4bcfa →
31e0316dace3
Split an even 6..14 by 6..14 zero-background grid into four equal quadrants. Each non-empty quadrant contains 2..6 cells of one color; the quadrant colors are distinct, and at most one quadrant is empty. Return a 2x2 grid containing the first non-zero color in each quadrant in row-major order, or 0 for the empty quadrant.
color summarizationoutput compressionspatial partitioning
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 ((dummy 0)) (define (first-nonzero-in-rect grid r0 r1 c0 c1) (let ((vals (filter (lambda (v) (not (= v 0))) (for*/list ((r (in-range r0 r1)) (c (in-range c0 c1))) (at grid r c))))) (if (empty? vals) 0 (first vals)))) (let* ((mh (quotient (rows g) 2)) (mw (quotient (cols g) 2)) (quads (list (list 0 mh 0 mw) (list 0 mh mw (cols g)) (list mh (rows g) 0 mw) (list mh (rows g) mw (cols g))))) (grid-from-fn 2 2 (lambda (r c) (let ((q (list-ref quads (+ (* r 2) c)))) (first-nonzero-in-rect g (first q) (second q) (third q) (fourth q))))))))
Provenance
- Generator
- generators/31e0316dace3/generator.py
- Notes and decisions
- generators/31e0316dace3/notes.md
- Review label
- reviewed_safe
- Generator SHA-256
- 5ce4b3ee4184f1e49633dfd79ea08c5c5bf4844fc680c53b3da7d059767faf97
- Rule hash
- 00eaf58ae429
- Sources
- bank:0e5302a13aba
- Lesson seeds
- 20261108, 20261109, 20261110, 20261111, 20261112
- Reproduce lesson 1
arcpuzzles generate 31e0316dace3 --count 1 --seed 20261108 --test 1