← bfef8519fe18 · c05faa9b2b85 →
c00a9bcded8e
A 30x30 zero-background grid contains 2..4 spatial rows of exactly three spatially varied solid 3..8-cell-side colored rectangles using a canonical-scale target palette, plus dense two-color small-object noise whose colors are absent from the rectangles. Return the rectangle colors as an n-by-3 table in spatial row-major order.
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)
;; Keep only large, nearly solid non-background components.
(let* ((objs (objects g 0))
(rects (filter (lambda (obj)
(and (>= (obj-size obj) 9)
(let* ((cells (obj-cells obj))
(rs (map fst cells)) (cs (map snd cells))
(oh (+ (- (max-list rs) (min-list rs)) 1))
(ow (+ (- (max-list cs) (min-list cs)) 1)))
(>= (/ (obj-size obj) (* oh ow)) 0.9))))
objs))
;; Record each rectangle by center row, center column, and color.
(centers (sort-by
(map (lambda (obj)
(let* ((rs (map fst (obj-cells obj)))
(cs (map snd (obj-cells obj))))
(list (/ (+ (min-list rs) (max-list rs)) 2)
(/ (+ (min-list cs) (max-list cs)) 2)
(obj-color obj))))
rects)
first))
(row-groups (list))
(cur-row (list))
(last-r #f))
;; Consecutive centers less than four rows apart belong to one output row.
(for-each (lambda (entry)
(if (or (not last-r) (< (- (first entry) last-r) 4))
(set! cur-row (append cur-row (list entry)))
(begin
(set! row-groups (append row-groups (list (sort-by cur-row second))))
(set! cur-row (list entry))))
(set! last-r (first entry)))
centers)
(unless (empty? cur-row)
(set! row-groups (append row-groups (list (sort-by cur-row second)))))
;; Emit the three rectangle colors in left-to-right order for every row.
(let* ((nrows (length row-groups)) (ncols 3))
(grid-from-fn nrows ncols (lambda (r c)
(nth (nth (nth row-groups r) c) 2)))))))Provenance
- Generator
- generators/c00a9bcded8e/generator.py
- Notes and decisions
- generators/c00a9bcded8e/notes.md
- Review label
- reviewed_safe
- Generator SHA-256
- 1b5e71b5ced5a6b441a44456d13ed93602561cb8017931f44ef0dcb0c7f9e097
- Rule hash
- 4732b1c1a64d
- Sources
- training
- Lesson seeds
- 20261108, 20261109, 20261110, 20261111, 20261112
- Reproduce lesson 1
arcpuzzles generate c00a9bcded8e --count 1 --seed 20261108 --test 1