← 00cccdad1b37 · 00f0de29a65c →

00ed2544a15e

Red(2) markers aligned horizontally or vertically are joined with cyan(8) only when the entire inclusive segment contains black plus exactly those two reds. Constructive h-chain, v-chain, and cross profiles also include a blocked pair and an isolated red to refute canonical-fitting shortcuts.

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!
  (let ((dummy 0))
    (define (cell< a b) (or (< (first a) (first b)) (and (= (first a) (first b)) (< (second a) (second b)))))
    (define (line-ok? line)
      (and (all? (lambda (p) (member? (at g (first p) (second p)) (list 0 2))) line)
           (= 2 (count-where (lambda (p) (= (at g (first p) (second p)) 2)) line))))
    (let* ((pts (find-color g 2))
           (pairs (for*/list ([a pts] [b pts] #:when (cell< a b)) (list a b))))
      (foldl
        (lambda (pair out)
          (let* ((a (first pair))
                 (b (second pair))
                 (ar (first a)) (ac (second a)) (br (first b)) (bc (second b)))
            (cond
              [(= ar br)
               (let* ((c0 (min ac bc)) (c1 (max ac bc))
                      (line (for/list ([c (range c0 (+ c1 1))]) (list ar c)))
                      (interior (for/list ([c (range (+ c0 1) c1)]) (list ar c))))
                 (if (line-ok? line) (paint-cells out interior 8) out))]
              [(= ac bc)
               (let* ((r0 (min ar br)) (r1 (max ar br))
                      (line (for/list ([r (range r0 (+ r1 1))]) (list r ac)))
                      (interior (for/list ([r (range (+ r0 1) r1)]) (list r ac))))
                 (if (line-ok? line) (paint-cells out interior 8) out))]
              [else out])))
        g
        pairs))))

Provenance

Generator
generators/00ed2544a15e/generator.py
Notes and decisions
generators/00ed2544a15e/notes.md
Review label
reviewed_safe
Generator SHA-256
5556b7cf1d2bf1b2f59ff5a0abfc12c97eeeb511a381e1bf47fe1d549e8bf01b
Rule hash
92ea0e00d9a5
Sources
bank:f4facb1306bd
Lesson seeds
20261108, 20261109, 20261110, 20261111, 20261112
Reproduce lesson 1
arcpuzzles generate 00ed2544a15e --count 1 --seed 20261108 --test 1