← 33d2674e3094 · 341758fa9de1 →

33f9169a335e

Find every three-cell cap whose next row contains its two legs and a zero center; preserve the scene and mark the bottom cell of each gap column orange.

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* ((gaps (filter (lambda (c)
                                  (for/or ((r (range 0 (- h 1))))
                                          (for/or ((cc (list (- c 1))))
                                                  (and
                                                    (and (>= cc 0) (< (+ cc 2) w))
                                                    (and
                                                      (!= 0 (at g r cc))
                                                      (!= 0 (at g r (+ cc 1)))
                                                      (!= 0 (at g r (+ cc 2)))
                                                      (!= 0 (at g (+ r 1) cc))
                                                      (zero? (at g (+ r 1) (+ cc 1)))
                                                      (!= 0 (at g (+ r 1) (+ cc 2))))))))
                                (range 0 w))))
             (cellmap g (r c v) (if (and (= r (- h 1)) (member? c gaps)) 4 v))))))

Provenance

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