← 19158f03ecb2 · 195dfcc5b541 →
192d2bc2de61
Three distinct colors form a row-0 legend whose cells may be contiguous, spaced, or offset. One canonical-core profile has a single body motif per color; the diagnostic profiles add early small decoys before a uniquely larger body motif. The largest motifs appear in a body order that differs from the legend. Read all nonzero legend cells left-to-right, pick the largest 4-connected body component of each color, crop its bounding box, and pack the crops horizontally with one zero column between them.
component croppinghorizontal packinglegend order
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).
Reference rule (Racket)
(rule!
(let ((dummy 0))
(define (pack-h grids gap)
(let* ((h (apply max (map rows grids)))
(w (+ (apply + (map cols grids)) (* gap (max 0 (- (length grids) 1))))))
(let loop ([out (empty-grid h w 0)] [remaining grids] [left 0])
(if (empty? remaining)
out
(let ((block (first remaining)))
(loop (for*/fold ([acc out])
([r (in-range (rows block))]
[c (in-range (cols block))]
#:when (not (= (at block r c) 0)))
(set-cell acc r (+ left c) (at block r c)))
(rest remaining)
(+ left (cols block) gap)))))))
(let* ((legend (filter (lambda (v) (not (= v 0))) (row g 0)))
(blocks
(map (lambda (color)
(let* ((matches (filter (lambda (obj)
(and (= (obj-color obj) color) (> (obj-r1 obj) 0)))
(objects g 0)))
(chosen (first
(sort matches
(lambda (a b)
(cond [(not (= (obj-size a) (obj-size b))) (> (obj-size a) (obj-size b))]
[(not (= (obj-r1 a) (obj-r1 b))) (< (obj-r1 a) (obj-r1 b))]
[else (< (obj-c1 a) (obj-c1 b))]))))))
(subgrid g (obj-r1 chosen) (obj-c1 chosen) (obj-r2 chosen) (obj-c2 chosen))))
legend)))
(pack-h blocks 1))))Provenance
- Generator
- generators/192d2bc2de61/generator.py
- Notes and decisions
- generators/192d2bc2de61/notes.md
- Review label
- reviewed_safe
- Generator SHA-256
- 08607a3107398b9288cca6544f93a090188550f83ad81b13220a88570617e393
- Rule hash
- 5ea0808c0383
- Sources
- bank:868e1a8cbe17
- Lesson seeds
- 20261108, 20261109, 20261110, 20261111, 20261112
- Reproduce lesson 1
arcpuzzles generate 192d2bc2de61 --count 1 --seed 20261108 --test 1