← bedcbc1cb6fb · bee63e6e52bd →

bedf1922195c

For each blue (1) 4-connected component that is a straight horizontal or vertical segment of odd length at least 3, recolor only its middle cell red (2); leave even blue segments, bent blue objects, nonblue segments, and every other cell unchanged.

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) (= (obj-color o) 1)) (objects g 0))])
    (let* ((cells (obj-cells obj))
           (rs (map first cells))
           (cs (map second cells)))
      (if (and (>= (length cells) 3)
               (= (remainder (length cells) 2) 1)
               (or (= (min-list rs) (max-list rs)) (= (min-list cs) (max-list cs))))
          (let* ((sorted (sort cells (lambda (a b)
                                       (if (= (min-list rs) (max-list rs))
                                           (< (second a) (second b))
                                           (< (first a) (first b))))))
                 (mid (nth sorted (quotient (length sorted) 2))))
            (set-cell out (first mid) (second mid) 2))
          out))))

Provenance

Generator
generators/bedf1922195c/generator.py
Notes and decisions
generators/bedf1922195c/notes.md
Review label
reviewed_safe
Generator SHA-256
d8b86859af5852a4ffe654b5ecbba94fd3aeceeb21da9584975f9dbca0a0b38d
Rule hash
6a1fd35b307c
Sources
bank:53ccebf2a36f
Lesson seeds
20261108, 20261109, 20261110, 20261111, 20261112
Reproduce lesson 1
arcpuzzles generate bedf1922195c --count 1 --seed 20261108 --test 1