← 334cbd1692c7 · 33c1de6c4310 →
337ce626a05f
A 0-background grid is split into 3-5 equal vertical panels by full color-5 divider columns. Each panel contains one monochrome connected object. A strict majority of panel objects share the same row-profile (cell counts from top bbox row to bottom), but the agreeing objects have different normalized shapes. Ignore the outlier profiles and render the majority profile as a left-justified cyan(8) histogram.
consensus reasoningconstructive outputprofile classes
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! (let ((dummy 0)) (define (top-left< a b) (if (= (obj-r1 a) (obj-r1 b)) (< (obj-c1 a) (obj-c1 b)) (< (obj-r1 a) (obj-r1 b)))) (define (row-profile obj) (for/list ((r (in-range (obj-r1 obj) (+ (obj-r2 obj) 1)))) (count-where (lambda (p) (= (first p) r)) (obj-cells obj)))) (define (col-profile obj) (for/list ((c (in-range (obj-c1 obj) (+ (obj-c2 obj) 1)))) (count-where (lambda (p) (= (second p) c)) (obj-cells obj)))) (define (max-row-peak obj) (apply max (row-profile obj))) (define (max-col-peak obj) (apply max (col-profile obj))) (define (row-histogram profile (color 8)) (let ((w (if (empty? profile) 1 (max 1 (apply max profile))))) (grid-from-fn (length profile) w (lambda (r c) (if (< c (list-ref profile r)) color 0))))) (define (split-vertical-panels grid sep-color) (define sep-cols (filter (lambda (c) (all? (lambda (r) (= (at grid r c) sep-color)) (range 0 (rows grid)))) (range 0 (cols grid)))) (define bounds (append (list -1) sep-cols (list (cols grid)))) (let loop ((xs bounds)) (if (empty? (rest xs)) (list) (let* ((left (+ (first xs) 1)) (right (- (second xs) 1)) (tail (loop (rest xs)))) (if (<= left right) (cons (subgrid grid 0 left (- (rows grid) 1) right) tail) tail))))) (define (single-largest grid (banned (list))) (first (sort (filter (lambda (obj) (not (member (obj-color obj) banned))) (objects grid 0)) (lambda (a b) (cond ((not (= (obj-size a) (obj-size b))) (> (obj-size a) (obj-size b))) ((not (= (max-row-peak a) (max-row-peak b))) (> (max-row-peak a) (max-row-peak b))) ((not (= (max-col-peak a) (max-col-peak b))) (> (max-col-peak a) (max-col-peak b))) (else (top-left< a b))))))) (define panels (split-vertical-panels g 5)) (define profiles (map (lambda (panel) (row-profile (single-largest panel))) panels)) (define majority (first (sort (remove-duplicates profiles) (lambda (a b) (let ((ca (count-where (lambda (x) (equal? x a)) profiles)) (cb (count-where (lambda (x) (equal? x b)) profiles))) (cond ((not (= ca cb)) (> ca cb)) ((not (= (apply + a) (apply + b))) (> (apply + a) (apply + b))) (else (> (length a) (length b))))))))) (row-histogram majority 8)))
Provenance
- Generator
- generators/337ce626a05f/generator.py
- Notes and decisions
- generators/337ce626a05f/notes.md
- Review label
- reviewed_safe
- Generator SHA-256
- 4a08870381ec7cd8130ca2d47d638002194ca012cfd2ae1c094e78913bfe0b3f
- Rule hash
- c75668610a13
- Sources
- bank:fe9bb13a9b18
- Lesson seeds
- 20261108, 20261109, 20261110, 20261111, 20261112
- Reproduce lesson 1
arcpuzzles generate 337ce626a05f --count 1 --seed 20261108 --test 1