← 12b9259f7792 · 13507b4f7614 →

1314f4ccf5cc

Find every incomplete yellow fragment of a cardinal plus and recolor only the gray cells that complete that plus; dense unrelated gray noise stays gray.

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! (lambda (g) (let* ((h (rows g)) (w (cols g))) (let* ((yellow-objs (filter (lambda (o) (= (obj-color o) 4)) (objects-8 g 0)))) (define (plus-cells r c) (filter (lambda (p) (in-bounds? (first p) (second p) h w)) (list (list r c) (list (- r 1) c) (list (+ r 1) c) (list r (- c 1)) (list r (+ c 1))))) (define (same-cells? a b) (and (= (length a) (length b)) (all? (lambda (p) (member? p b)) a))) (define (valid-missing ycells pc) (let* ((py (filter (lambda (p) (= (at g (first p) (second p)) 4)) pc)) (pg (filter (lambda (p) (= (at g (first p) (second p)) 5)) pc))) (and (and (same-cells? ycells py) (> (length pg) 0) (all? (lambda (p) (let ((v (at g (first p) (second p)))) (or (= v 4) (= v 5)))) pc)) pg))) (define (candidate obj) (let ((ycells (obj-cells obj))) (if (< (length ycells) 2) #f (for*/first ((r (range 0 h)) (c (range 0 w)) #:when (valid-missing ycells (plus-cells r c))) (valid-missing ycells (plus-cells r c)))))) (reduce (lambda (acc obj) (let ((missing (candidate obj))) (if missing (recolor-cells acc missing 2) acc))) g yellow-objs)))))

Provenance

Generator
generators/1314f4ccf5cc/generator.py
Notes and decisions
generators/1314f4ccf5cc/notes.md
Review label
reviewed_safe
Generator SHA-256
e3bc887168cfb5a07de7c6ea80ad1acaa7b31a40e54e104ce71f03bd060c2578
Rule hash
645d868e16fc
Sources
training
Lesson seeds
20261108, 20261109, 20261110, 20261111, 20261112
Reproduce lesson 1
arcpuzzles generate 1314f4ccf5cc --count 1 --seed 20261108 --test 1