← 5a85abd1e231 · 5b18a320e97b →

5a8d42591332

An 11x11 input contains three color-1 count headers across the top and three color-2 count headers down the left. Compare each top count with each left count and fill the matching 2x2 body block with 4 when top is larger, 3 when left is larger, or 8 when the counts are equal.

count comparisonmatrix synthesismeta-layout parsing

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 (count-nonzero-rect grid r0 c0 h w) (for*/sum ((r (in-range r0 (+ r0 h))) (c (in-range c0 (+ c0 w)))) (if (= (at grid r c) 0) 0 1))) (let* ((starts (list 3 6 9)) (top-counts (map (lambda (cs) (count-nonzero-rect g 0 cs 2 2)) starts)) (left-counts (map (lambda (rs) (count-nonzero-rect g rs 0 2 2)) starts))) (for*/fold ((out g)) ((i (in-range 3)) (j (in-range 3))) (let* ((rs (list-ref starts i)) (cs (list-ref starts j)) (tc (list-ref top-counts j)) (lc (list-ref left-counts i)) (color (cond ((> tc lc) 4) ((< tc lc) 3) (else 8)))) (for*/fold ((acc out)) ((r (in-range rs (+ rs 2))) (c (in-range cs (+ cs 2)))) (set-cell acc r c color)))))))

Provenance

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