← 586db18f9bd7 · 588ee22f3c4f →

587396c0817d

7-bg grid whose rows mix three kinds: ACTIVE rows with exactly one color-6 anchor plus other non-7 cells, DECOY rows with non-7 cells but no 6, and EMPTY all-7 rows. Rule: per row, if a 6 is present among the non-7 cells, paint an 8-bar whose length is the non-7 count, starting at c6 - idx where idx is the 6's column-rank among the non-7 cells; everything else becomes 7.

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)))
           (cellmap g
                    (r c v)
                    (let* ((non7 (filter (lambda (c2) (!= (at g r c2) 7)) (range 0 w)))
                           (c6-pos (find (lambda (c2) (= (at g r c2) 6)) non7)))
                      (if c6-pos
                          (let* ((count (length non7))
                                 (idx (count-if (lambda (c2) (< c2 c6-pos)) non7))
                                 (bar-start (- c6-pos idx))
                                 (bar-end (+ bar-start (- count 1))))
                            (if (and (>= c bar-start) (<= c bar-end)) 8 7))
                          7))))))

Provenance

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