← 96ebf3053dbe · 9713c70409d0 →
96fc9e1b827a
Three separated monochrome objects are shown on black. Select the unique largest by cell count and output its top-justified cyan column-count histogram. Every four-sample lesson includes canonical-scale anchors and counterexamples to leftmost, widest, and largest-bounding-box shortcuts.
column profilesconstructive outputsize ranking
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 (col-histogram profile (color 8)) (let ((h (if (empty? profile) 1 (max 1 (apply max profile))))) (grid-from-fn h (length profile) (lambda (r c) (if (< r (list-ref profile c)) color 0))))) (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))))))) (col-histogram (col-profile (single-largest g)) 8)))
Provenance
- Generator
- generators/96fc9e1b827a/generator.py
- Notes and decisions
- generators/96fc9e1b827a/notes.md
- Review label
- reviewed_safe
- Generator SHA-256
- 25ca3f14554efa28e82b60c8fd8576ece2e605e706de10e5f600aa71952dd2eb
- Rule hash
- 0fb26a20e01c
- Sources
- bank:fe9bb13a9b18
- Lesson seeds
- 20261108, 20261109, 20261110, 20261111, 20261112
- Reproduce lesson 1
arcpuzzles generate 96fc9e1b827a --count 1 --seed 20261108 --test 1