← c830d527a4ba · c83b29b14c16 →
c831492f416e
Connect every nonzero color that appears exactly twice when its two cells share a row or column. Fill only the inclusive segment between the two endpoints. Process colors in ascending order, so the numerically larger color wins at an interior crossing. Diagonal pairs and aligned triples remain unchanged.
line completionpair matchingrow/column reasoning
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).
Reference rule (Racket)
(rule!
(let ((dummy 0))
(define (paint-color out color)
(let ((cells (find-color g color)))
(if (not (= (length cells) 2))
(paint-cells out cells color)
(let* ((a (first cells))
(b (second cells))
(r1 (first a)) (c1 (second a))
(r2 (first b)) (c2 (second b)))
(cond [(= r1 r2)
(paint-cells out (for/list ([c (in-range (min c1 c2) (+ (max c1 c2) 1))]) (list r1 c)) color)]
[(= c1 c2)
(paint-cells out (for/list ([r (in-range (min r1 r2) (+ (max r1 r2) 1))]) (list r c1)) color)]
[else (paint-cells out cells color)])))))
(for/fold ([out (empty-grid (rows g) (cols g) 0)])
([color (in-list (grid-colors g 0))])
(paint-color out color))))Provenance
- Generator
- generators/c831492f416e/generator.py
- Notes and decisions
- generators/c831492f416e/notes.md
- Review label
- reviewed_safe
- Generator SHA-256
- c9befa230e1e4f8682419669ccfd8bc6e24815c197750928229ce2568368fb1e
- Rule hash
- 91f9e86ee830
- Sources
- bank:edd0efb19ea0
- Lesson seeds
- 20261108, 20261109, 20261110, 20261111, 20261112
- Reproduce lesson 1
arcpuzzles generate c831492f416e --count 1 --seed 20261108 --test 1