← c831492f416e · c84e2a641055 →

c83b29b14c16

On a 0-background grid, each color occurring exactly twice is joined inclusively when its two cells share a row or column. Singleton colors, three-cell colors, and diagonal pairs are unchanged controls.

parametric familyendpoint pairingpath completionsame-size transform

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 ((colors (filter (lambda (v) (not (= v 0))) (grid-colors g))))
    (for/fold ([out g]) ([color (in-list colors)])
      (let ((pts (find-color g color)))
        (if (= (length pts) 2)
            (let ((a (first pts)) (b (second pts)))
              (cond [(= (first a) (first b))
                     (paint-cells out (map (lambda (c) (list (first a) c))
                                           (range (min (second a) (second b)) (+ (max (second a) (second b)) 1))) color)]
                    [(= (second a) (second b))
                     (paint-cells out (map (lambda (r) (list r (second a)))
                                           (range (min (first a) (first b)) (+ (max (first a) (first b)) 1))) color)]
                    [else out]))
            out)))))

Provenance

Generator
generators/c83b29b14c16/generator.py
Notes and decisions
generators/c83b29b14c16/notes.md
Review label
reviewed_safe
Generator SHA-256
e50959c8c0c7fc1704508a41a378658c22d327943b94c214c07be4ebb7254b89
Rule hash
d264380c5850
Sources
bank:0f1ff2289d6f
Lesson seeds
20261108, 20261109, 20261110, 20261111, 20261112
Reproduce lesson 1
arcpuzzles generate c83b29b14c16 --count 1 --seed 20261108 --test 1