← 1238481b674b · 126da449328f →
1261cb825a44
0-bg grid (h ∈ 9-12, w ∈ 10-13) with: (a) ONE CORNER KEY CELL — exactly one of the 4 grid corners (0,0), (0,w-1), (h-1,0), or (h-1,w-1) is painted in key_color (drawn from palette[0] ∈ {1..9}); (b) ONE KEY-COLORED BLOB inside the grid — a 3-5 cell irregular blob via grow_blob in the SAME key_color, placed AWAY from any corner (retry if any cell lands on a corner); (c) 1-2 DISTRACTOR BLOBS in OTHER colors (palette[1:] = 2 distinct non-key colors), each a 3-5 cell blob also placed away from corners. Rule (READ THE CORNER KEY, FILTER THE GRID TO KEEP ONLY KEY-COLORED NON-CORNER CELLS, CROP TO THEIR BBOX, OUTPUT): IDENTIFY the unique non-bg CORNER cell — its color is the KEY. FILTER all grid cells: KEEP only cells whose color == key_color AND whose position is NOT a corner. COMPUTE the bbox of the kept cells. CROP to that bbox: OUTPUT a smaller grid containing only the key-colored blob (with 0s where the bbox has no key cells). Net: the corner color picks which blob to extract; the cropped key-blob is the answer; distractors and corner are discarded.
parametric familycolor_keycropselection
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 (normalize-cell-list cells) (if (empty? cells) (list) (let* ((bb (bbox-of-cells cells)) (r0 (first bb)) (c0 (second bb))) (sort (map (lambda (p) (list (- (first p) r0) (- (second p) c0))) cells) cell<)))) (define (cells->grid cells color) (if (empty? cells) (grid (list 0)) (let* ((norm (normalize-cell-list cells)) (h (+ 1 (apply max (map first norm)))) (w (+ 1 (apply max (map second norm))))) (paint-cells (empty-grid h w 0) norm color)))) (define (corner-key-color grid) (let ((p (find-first (lambda (pos) (not (= (at grid (first pos) (second pos)) 0))) (corner-positions grid)))) (if (eq? p #f) 0 (at grid (first p) (second p))))) (define (same-color-points grid color) (sort (find-color grid color) cell<)) (let* ((key-color (corner-key-color g)) (corners (corner-positions g)) (cells (filter (lambda (p) (not (member? p corners))) (same-color-points g key-color)))) (cells->grid cells key-color))))
Provenance
- Generator
- generators/1261cb825a44/generator.py
- Notes and decisions
- generators/1261cb825a44/notes.md
- Review label
- reviewed_safe
- Generator SHA-256
- e4b030f047805c5628bb4f8275a41d528d5e386f070aee53644c7152c3d59b2a
- Rule hash
- faa48b065fb9
- Sources
- bank:ecfb302aa617
- Lesson seeds
- 20261108, 20261109, 20261110, 20261111, 20261112
- Reproduce lesson 1
arcpuzzles generate 1261cb825a44 --count 1 --seed 20261108 --test 1