← 094e0794786c · 096c65084073 →

09636f05e06e

Clear rows or columns containing original zeros, preserving every color-2 cell.

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* ((black-rows (filter (lambda (r)
                                        (find (lambda (c) (zero? (at g r c)))
                                              (range 0 w)))
                                      (range 0 h)))
                  (black-cols (filter (lambda (c)
                                        (find (lambda (r) (zero? (at g r c)))
                                              (range 0 h)))
                                      (range 0 w))))
             (cellmap g
                      (r c v)
                      (if (or
                            (find (lambda (br) (= r br)) black-rows)
                            (find (lambda (bc) (= c bc)) black-cols))
                          (if (= v 2) 2 0)
                          v))))))

Provenance

Generator
generators/09636f05e06e/generator.py
Notes and decisions
generators/09636f05e06e/notes.md
Review label
reviewed_safe
Generator SHA-256
0477dc50fdff9ac43529ebbddd8173ac0641eaf0311929f51d51439040493e69
Rule hash
53141d69f404
Sources
training
Lesson seeds
20261108, 20261109, 20261110, 20261111, 20261112
Reproduce lesson 1
arcpuzzles generate 09636f05e06e --count 1 --seed 20261108 --test 1