← 8811ea806605 · 8862a204ce3a →
882c01c42710
0-bg grid (h, w~12-16) with: (a) ONE HORIZONTAL SEED SEQUENCE at some center-ish row cr — 3-4 consecutive cells (starting at random col h_start) painted in distinct colors from a 4-color palette (palette colors used in order); (b) ONE VERTICAL SEED SEQUENCE at some center-ish col cc — 3-4 consecutive cells (starting at random row v_start) painted in the same palette order. Both sequences lie on the SAME center row/col axes. Rule: identify the row with the most non-bg cells (the H-axis center row) and the col with the most (the V-axis center col). For each axis, CYCLE the seed sequence across the ENTIRE row/col — extending the palette pattern (in order) to all cells of that row/col on both sides of the seeds. Net: a small seed sequence on each axis becomes a full periodic stripe spanning the row and column.
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* ((hh (rows g))
(ww (cols g))
(row-counts (make-hash))
(col-counts (make-hash))
(dummy (for* ((r (range 0 hh)) (c (range 0 ww)))
(when
(!= (at g r c) 0)
(hash-set! row-counts
r
(+ 1 (hash-ref row-counts r 0)))
(hash-set! col-counts
c
(+ 1 (hash-ref col-counts c 0))))))
(center-row #f)
(center-col #f)
(max-r 0)
(max-c 0)
(dummy2 (hash-for-each row-counts
(lambda (k v)
(when
(> v max-r)
(set! max-r v)
(set! center-row k)))))
(dummy3 (hash-for-each col-counts
(lambda (k v)
(when
(> v max-c)
(set! max-c v)
(set! center-col k)))))
(v-seq (for/list ((r (range 0 hh)) #:when (!= (at g r center-col) 0))
(at g r center-col)))
(v-start (let loop
((r 0))
(if (!= (at g r center-col) 0) r (loop (+ r 1)))))
(v-period (length v-seq))
(h-seq (for/list ((c (range 0 ww)) #:when (!= (at g center-row c) 0))
(at g center-row c)))
(h-start (let loop
((c 0))
(if (!= (at g center-row c) 0) c (loop (+ c 1)))))
(h-period (length h-seq))
(result (make-hash)))
(for* ((r (range 0 hh)) (c (range 0 ww)))
(hash-set! result (list r c) (at g r c)))
(for ((r (range 0 hh)))
(hash-set! result
(list r center-col)
(list-ref v-seq
(remainder (+ v-period
(remainder (- r v-start) v-period))
v-period))))
(for ((c (range 0 ww)))
(hash-set! result
(list center-row c)
(list-ref h-seq
(remainder (+ h-period
(remainder (- c h-start) h-period))
h-period))))
(build-grid hh ww (r c) (hash-ref result (list r c) 0))))))Provenance
- Generator
- generators/882c01c42710/generator.py
- Notes and decisions
- generators/882c01c42710/notes.md
- Review label
- reviewed_safe
- Generator SHA-256
- b0eb04b9864ba24044b77c38836a7dc40d7d718d25694a5a82545c07c43f5ed3
- Rule hash
- 6c98f9c259fd
- Sources
- augmented, training
- Lesson seeds
- 20261108, 20261109, 20261110, 20261111, 20261112
- Reproduce lesson 1
arcpuzzles generate 882c01c42710 --count 1 --seed 20261108 --test 1