← d57b7deebba2 · d5a059b0f3a6 →

d59da25908ca

Exact length-2 vertical green runs turn orange; length-1 and length-3+ controls stay green.

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 (v1-run-end-col grid r c color) (let loop ((rr r)) (if (and (< (+ rr 1) (rows grid)) (= (at grid (+ rr 1) c) color)) (loop (+ rr 1)) rr))) (for*/fold ((out g)) ((r (in-range (rows g))) (c (in-range (cols g)))) (if (and (= (at g r c) 3) (or (= r 0) (not (= (at g (- r 1) c) 3)))) (let ((end (v1-run-end-col g r c 3))) (if (= (+ 1 (- end r)) 2) (paint-cells out (map (lambda (rr) (list rr c)) (range r (+ end 1))) 7) out)) out))))

Provenance

Generator
generators/d59da25908ca/generator.py
Notes and decisions
generators/d59da25908ca/notes.md
Review label
reviewed_safe
Generator SHA-256
e94f4f3d003f161ebed1561b56f39a1f4a186d5270039164cadbc1c1e40f4a5b
Rule hash
ae357e8ac60c
Sources
bank:91ced140cdc4
Lesson seeds
20261108, 20261109, 20261110, 20261111, 20261112
Reproduce lesson 1
arcpuzzles generate d59da25908ca --count 1 --seed 20261108 --test 1