← a2e8d5ad83e5 · a3086dea6cff →

a2fc4c442e35

0-bg grid (h~5-8, w~8-12) with 1-3 isolated horizontal length-3 target runs and one isolated horizontal length-4 negative run. Every run uses a distinct non-zero color and a distinct row, with blank cells immediately on both sides. The rule extends each exact-length-3 run by one same-colored cell on the left and right, while the length-4 run stays unchanged. The mixed lesson refutes the shortcut that extends every non-zero horizontal run regardless of length.

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! (let ((dummy 0)) (define (f4-horizontal-runs grid) (apply append (for/list ((r (in-range (rows grid)))) (let loop ((c 0) (acc (list))) (cond ((>= c (cols grid)) (reverse acc)) ((= (at grid r c) 0) (loop (+ c 1) acc)) (else (let* ((v (at grid r c)) (end (let walk ((cc c)) (if (and (< (+ cc 1) (cols grid)) (= (at grid r (+ cc 1)) v)) (walk (+ cc 1)) cc)))) (loop (+ end 1) (cons (list r c end v) acc))))))))) (for/fold ((out g)) ((run (in-list (f4-horizontal-runs g)))) (let ((r (first run)) (c0 (second run)) (c1 (third run)) (v (fourth run))) (if (= (+ 1 (- c1 c0)) 3) (let* ((left (if (and (>= (- c0 1) 0) (= (at g r (- c0 1)) 0)) (set-cell out r (- c0 1) v) out)) (right (if (and (< (+ c1 1) (cols g)) (= (at g r (+ c1 1)) 0)) (set-cell left r (+ c1 1) v) left))) right) out)))))

Provenance

Generator
generators/a2fc4c442e35/generator.py
Notes and decisions
generators/a2fc4c442e35/notes.md
Review label
reviewed_safe
Generator SHA-256
5f8db07f3af3a87e298cb25e6825ddcbc29466931238c61fb052c7b7731fb4b7
Rule hash
aedf4fa126e2
Sources
bank:884454e62c49
Lesson seeds
20261108, 20261109, 20261110, 20261111, 20261112
Reproduce lesson 1
arcpuzzles generate a2fc4c442e35 --count 1 --seed 20261108 --test 1