← eb373570e72b · eb92fce9b549 →

eb60199b6eb8

Rows are independent on a zero background. Exactly two separated nonzero cells of the same color are valid endpoints; the Racket rule fills their inclusive interval on a fresh grid. Ordinary samples also contain one two-color pair and one three-cell outer-match row, both of which must vanish, so every grid teaches the exact-two-and-same-color discriminator.

parametric family

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 (paint grid cells color) (for/fold ((out grid)) ((p (in-list cells))) (if (in-bounds? (first p) (second p) (rows out) (cols out)) (set-cell out (first p) (second p) color) out))) (for/fold ((out (empty-grid (rows g) (cols g) 0))) ((r (in-range (rows g)))) (let ((pos (filter (lambda (c) (not (= (at g r c) 0))) (range (cols g))))) (if (and (= (length pos) 2) (= (at g r (first pos)) (at g r (second pos)))) (paint out (map (lambda (c) (list r c)) (range (min (first pos) (second pos)) (+ (max (first pos) (second pos)) 1))) (at g r (first pos))) out)))))

Provenance

Generator
generators/eb60199b6eb8/generator.py
Notes and decisions
generators/eb60199b6eb8/notes.md
Review label
reviewed_safe
Generator SHA-256
c309fdcb86cf2588b01e62784b5ff9a82ad1b658806a87ad48e07f5e1ee9efb2
Rule hash
7d5c5a67ac1a
Sources
bank:f7fa4dfa2903
Lesson seeds
20261108, 20261109, 20261110, 20261111, 20261112
Reproduce lesson 1
arcpuzzles generate eb60199b6eb8 --count 1 --seed 20261108 --test 1