← cddbee92b2f3 · ce0b0e843251 →
cde6cd1740f9
Every active input column contains 4 or 9 scattered colored cells. Its total determines a 2- or 3-layer odd-width pyramid; its bottom-to-top distinct-color order and exact color counts determine complete consecutive layers. The output moves those layers to the grid bottom, centered on the same column. Canvas and structure vary independently; every nine consecutive samples cover all four canvases and all five structures, including both 5+4 and 8+1 grouped-layer partitions.
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* ((result (make-hash)))
(for* ((r (range 0 h)) (c (range 0 w))) (hash-set! result (list r c) 0))
(for ((col (range 0 w)))
(let* ((cells (for/list ((r (range 0 h)) #:when (!= (at g r col) 0))
(list r (at g r col))))
(total (length cells)))
(when
(> total 0)
(let* ((k (inexact->exact (floor (sqrt (+ 0.0 total)))))
(colors-rev (list))
(seen (make-hash))
(dummy (for ((cell (reverse cells)))
(let ((color (second cell)))
(unless
(hash-has-key? seen color)
(hash-set! seen color #t)
(set! colors-rev
(append colors-rev (list color)))))))
(ccounts (make-hash))
(dummy2 (for ((cell cells))
(hash-set! ccounts
(second cell)
(+ 1 (hash-ref ccounts (second cell) 0)))))
(layers (for/list ((i (range 0 k))) (- (- (* 2 k) 1) (* 2 i))))
(cidx 0)
(rem (hash-ref ccounts (list-ref colors-rev 0) 0))
(layer-colors (for/list ((lw layers))
(begin
(when
(<= rem 0)
(set! cidx (+ cidx 1))
(set! rem
(hash-ref ccounts
(list-ref colors-rev cidx)
0)))
(set! rem (- rem lw))
(list-ref colors-rev cidx)))))
(for ((i (range 0 k)))
(let* ((lw (list-ref layers i))
(color (list-ref layer-colors i))
(row (- (- h 1) i))
(start (- col (quotient lw 2))))
(for ((dc (range 0 lw)))
(let ((c (+ start dc)))
(when
(and (>= c 0) (< c w))
(hash-set! result (list row c) color))))))))))
(cellmap g (r c v) (hash-ref result (list r c) 0))))))Provenance
- Generator
- generators/cde6cd1740f9/generator.py
- Notes and decisions
- generators/cde6cd1740f9/notes.md
- Review label
- reviewed_safe
- Generator SHA-256
- 66c20ab0c44e2199caf1664e2b994fa55462fe3383efcb6addc2085b8c7fbbff
- Rule hash
- 027335bb451f
- Sources
- augmented, training
- Lesson seeds
- 20261108, 20261109, 20261110, 20261111, 20261112
- Reproduce lesson 1
arcpuzzles generate cde6cd1740f9 --count 1 --seed 20261108 --test 1