← 941f7ac13580 · 946e33609350 →

94549757a7f3

A zero-background grid contains two or three separated horizontal green (color-3) runs. Append exactly one red (color-2) cell immediately to the right of each run when that cell is in bounds and zero. Do not alter horizontal non-green runs, vertical green objects, green runs ending at the right edge, or green runs whose right neighbour is occupied.

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!
  (for/fold ([out g]) ([obj (filter (lambda (o) (and (= (obj-color o) 3) (= (obj-r1 o) (obj-r2 o)))) (objects g 0))])
    (let ((r (obj-r1 obj)) (c (+ (obj-c2 obj) 1)))
      (if (and (< c (cols g)) (= (at g r c) 0))
          (set-cell out r c 2)
          out))))

Provenance

Generator
generators/94549757a7f3/generator.py
Notes and decisions
generators/94549757a7f3/notes.md
Review label
reviewed_safe
Generator SHA-256
5fc76ed9bfc3d6c17052545dbe66cff219561212460a9170a6793c0d4660ed61
Rule hash
a56ad928ddca
Sources
bank:2f7d84161f6a
Lesson seeds
20261108, 20261109, 20261110, 20261111, 20261112
Reproduce lesson 1
arcpuzzles generate 94549757a7f3 --count 1 --seed 20261108 --test 1