← 19c5f15066d3 · 1a259ef9a7e7 →
19e04051ad0d
Infer the modal background color and the three vertical column-regions separated by two full-background columns. Each region contains one distinct foreground color and background holes. Fill only those holes with the NEXT region's color in a cyclic left-to-right rotation; preserve all original foreground cells and the separator columns.
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* ((bg (mode g -1))
(sep-cols (for/list ((c (range 0 w)) #:when
(for/and ((r (range 0 h))) (= (at g r c) bg)))
c))
(sep-set (make-hash))
(dummy (for ((c sep-cols)) (hash-set! sep-set c #t)))
(regions (list))
(current (list))
(dummy2 (for ((c (range 0 w)))
(if (hash-has-key? sep-set c)
(begin
(unless
(null? current)
(set! regions (append regions (list current))))
(set! current (list)))
(set! current (append current (list c))))))
(dummy3 (unless
(null? current)
(set! regions (append regions (list current)))))
(region-colors (for/list ((reg regions))
(let ((colors (make-hash)))
(for ((c reg))
(for ((r (range 0 h)))
(let ((v (at g r c)))
(when (!= v bg) (hash-set! colors v #t)))))
(car (hash-keys colors)))))
(n (length regions))
(result (make-hash)))
(for* ((r (range 0 h)) (c (range 0 w)))
(hash-set! result (list r c) (at g r c)))
(for ((i (range 0 n)))
(let ((reg (list-ref regions i))
(repl (list-ref region-colors (remainder (+ i 1) n))))
(for ((c reg))
(for ((r (range 0 h)))
(when (= (at g r c) bg) (hash-set! result (list r c) repl))))))
(cellmap g (r c v) (hash-ref result (list r c) 0))))))Provenance
- Generator
- generators/19e04051ad0d/generator.py
- Notes and decisions
- generators/19e04051ad0d/notes.md
- Review label
- reviewed_safe
- Generator SHA-256
- cd05f83c1e193c864f8c748791945a3b09c58a6de3cb5247154cf225d188d482
- Rule hash
- 3448ae999e2e
- Sources
- augmented, training
- Lesson seeds
- 20261108, 20261109, 20261110, 20261111, 20261112
- Reproduce lesson 1
arcpuzzles generate 19e04051ad0d --count 1 --seed 20261108 --test 1