← db89dc496d45 · db98b701e5bb →
db95939a5dd0
Mode-color background grid (12..16 x 12..14, canonical prior on the exact official dim pairs). 1..2 4-connected compounds, each exactly two colors stacked vertically: an upper blob (1..5 rows, 2..7 cols, possibly L-shaped or 1-cell notched) touching a lower blob; both color classes 4-connected. Rule: each compound's top color shifts left 1, its bottom color shifts right 1, onto a fresh background. Compounds keep collision-free separation (row-disjoint or >=2 empty bbox columns when rows overlap) and every cell keeps shift room.
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))
(all-cells (for*/list ((r (range 0 h)) (c (range 0 w))
#:when
(!= (at g r c) bg))
(list r c)))
(cell-set (make-hash))
(_cs (for ((p all-cells)) (hash-set! cell-set p #t)))
(vis (make-hash))
(components (let loop
((cells all-cells) (acc (list)))
(cond
((null? cells) (reverse acc))
((hash-has-key? vis (car cells)) (loop (cdr cells) acc))
(else (let bfs
((queue (list (car cells))) (comp (list)))
(cond
((null? queue) (loop (cdr cells) (cons comp acc)))
((hash-has-key? vis (car queue)) (bfs (cdr queue) comp))
(else (hash-set! vis (car queue) #t)
(let* ((r (first (car queue)))
(c (second (car queue)))
(nbrs (filter (lambda (n)
(and
(hash-has-key? cell-set
n)
(not (hash-has-key? vis
n))))
(list (list (- r
1)
c)
(list (+ r
1)
c)
(list r
(- c
1))
(list r
(+ c
1))))))
(bfs (append (cdr queue) nbrs)
(cons (car queue) comp))))))))))
(result (make-hash)))
(for ((comp components))
(let* ((colors (remove-duplicates (map (lambda (p)
(at g (first p) (second p)))
comp)))
(c1 (first colors))
(c2 (second colors))
(c1-cells (filter (lambda (p) (= (at g (first p) (second p)) c1))
comp))
(c2-cells (filter (lambda (p) (= (at g (first p) (second p)) c2))
comp))
(c1-min-r (min-of first c1-cells))
(c2-min-r (min-of first c2-cells))
(top-color (if (< c1-min-r c2-min-r) c1 c2))
(bot-color (if (< c1-min-r c2-min-r) c2 c1))
(top-cells (if (= top-color c1) c1-cells c2-cells))
(bot-cells (if (= top-color c1) c2-cells c1-cells)))
(for ((p top-cells))
(hash-set! result (list (first p) (- (second p) 1)) top-color))
(for ((p bot-cells))
(hash-set! result (list (first p) (+ (second p) 1)) bot-color))))
(cellmap g (r c v) (hash-ref result (list r c) bg))))))Provenance
- Generator
- generators/db95939a5dd0/generator.py
- Notes and decisions
- generators/db95939a5dd0/notes.md
- Review label
- reviewed_safe
- Generator SHA-256
- 7bf7cef69b27cf6507efc9239c4575a0b940d867eb0462e622cc0450bcf825b1
- Rule hash
- a742202e03fb
- Sources
- augmented, training
- Lesson seeds
- 20261108, 20261109, 20261110, 20261111, 20261112
- Reproduce lesson 1
arcpuzzles generate db95939a5dd0 --count 1 --seed 20261108 --test 1