← 0a9e3d364bb3 · 0ab4fcb302d2 →

0a9ee3cbb232

Count maximal horizontal runs of 3 and 2 into a 2x3 row-major tally. Canonical-profile canvases vary the background; every default draw contains a multi-row connected run object and two same-color runs in one row, while alternating draws overflow the six-cell tally.

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* ((count-segments (lambda (color)
                                    (let loop-r
                                         ((r 0) (count 0))
                                         (cond
                                           ((>= r h) count)
                                           (else (let loop-c
                                                      ((c 0) (in-seg? #f) (cnt count))
                                                      (cond
                                                        ((>= c w) (loop-r (+ r 1) cnt))
                                                        ((= (at g r c) color) (cond
                                                            ((not in-seg?) (loop-c (+ c 1)
                                                                      #t
                                                                      (+ cnt 1)))
                                                            (else (loop-c (+ c 1)
                                                                          #t
                                                                          cnt))))
                                                        (else (loop-c (+ c 1) #f cnt)))))))))
                  (n3 (count-segments 3))
                  (n2 (count-segments 2)))
             (build-grid 2
                         3
                         (r c)
                         (let ((i (+ (* r 3) c)))
                           (cond ((< i n3) 3) ((< i (+ n3 n2)) 2) (else 0))))))))

Provenance

Generator
generators/0a9ee3cbb232/generator.py
Notes and decisions
generators/0a9ee3cbb232/notes.md
Review label
reviewed_safe
Generator SHA-256
80ed7c2df14a6009a0322a6f3d81ea8e8297ebcd5a4438ea3baefa7052578b1c
Rule hash
54a0bdf9c500
Sources
augmented, training
Lesson seeds
20261108, 20261109, 20261110, 20261111, 20261112
Reproduce lesson 1
arcpuzzles generate 0a9ee3cbb232 --count 1 --seed 20261108 --test 1