← c59d7541b22e · c5a80b7a3acc →
c5a69e7cd8c8
A unique-color cell has exactly one open cardinal neighbour. Paint that singleton color through zero cells on the opposite ray, skipping the monochrome support shape rather than overwriting it.
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* ((all-vals (flatmap (lambda (r)
(map (lambda (c) (at g r c)) (range 0 w)))
(range 0 h)))
(nz-vals (filter (lambda (v) (!= v 0)) all-vals))
(colors (unique nz-vals))
(minority (find (lambda (color)
(= 1 (for/sum ((v nz-vals)) (if (= v color) 1 0))))
colors))
(mc (first (find-color g minority)))
(mr (fst mc))
(mcc (snd mc))
(open-dir (cond
((and (> mr 0) (zero? (at g (- mr 1) mcc))) (list -1 0))
((and (< mr (- h 1)) (zero? (at g (+ mr 1) mcc))) (list 1 0))
((and (> mcc 0) (zero? (at g mr (- mcc 1)))) (list 0 -1))
(else (list 0 1))))
(dr (* -1 (first open-dir)))
(dc (* -1 (second open-dir))))
(reduce (lambda (grid i)
(let ((nr (+ mr (* dr i)))
(nc (+ mcc (* dc i))))
(if (and
(>= nr 0)
(< nr h)
(>= nc 0)
(< nc w)
(zero? (at grid nr nc)))
(set-cell grid nr nc minority)
grid)))
g
(range 1 (max h w)))))))Provenance
- Generator
- generators/c5a69e7cd8c8/generator.py
- Notes and decisions
- generators/c5a69e7cd8c8/notes.md
- Review label
- reviewed_safe
- Generator SHA-256
- 132987cd4a2c9f6e2634c8edc5e54db1ff5a493c9a7b3ba6d8c3246150f4b6a0
- Rule hash
- bf2554f59664
- Sources
- training
- Lesson seeds
- 20261108, 20261109, 20261110, 20261111, 20261112
- Reproduce lesson 1
arcpuzzles generate c5a69e7cd8c8 --count 1 --seed 20261108 --test 1