← ccbf7456811b · cdb267535df8 →

cd818a9d92d1

Repeat the bottom guide row into every output row. Preserve every gray 5 at its input position. When a gray 5 lies above a bottom-row red 2, clear that red column above the blocker and continue it one cell right from the top through the row below the blocker. Gray cells outside red marker columns are preserved distractors and do not bend a column.

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)))
           (begin
             (define base (cellmap g (r c v) (at g (- h 1) c)))
             (for*/fold ((out base))
                        ((r (range 0 h)) (c (range 0 w)))
                        (if (= (at g r c) 5)
                            (let ((with-five (set-cell out r c 5)))
                              (if (= (at g (- h 1) c) 2)
                                  (for/fold ((gg with-five))
                                    ((rr (range 0 (min h (+ r 2)))))
                                    (let* ((g1 (if (< rr r) (set-cell gg rr c 0) gg))
                                           (g2 (if (= rr r) (set-cell g1 rr c 5) g1)))
                                      (if (< (+ c 1) w) (set-cell g2 rr (+ c 1) 2) g2)))
                                  with-five))
                            out))))))

Provenance

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