← b6ba2d176fe8 · b6f34233d788 →
b6c499e1fa78
0-bg SQUARE grid (size 10-30). Top half holds a BLUE (color 1) WALL spanning exactly 3 consecutive rows and the full width. The wall contains 1-3 OPENING pockets: 0-cells with blue somewhere above them inside the wall rows and blue somewhere on both sides in their row (gap shapes: dominoes, squares, L/T/S pieces, ...). Below the wall (>= 1 blank row) sit 3-6 GRAY (color 5) PIECES — 4-connected blobs such as bars, L-shapes, 2x2 blocks, T/plus clusters. Rule (GRAY KEYS THAT FIT A WALL OPENING OR BRANCH TURN RED): every gray piece turns RED (color 2) iff (a) it BRANCHES — some cell has 3+ gray 4-neighbors — or (b) its top rows, taken as tall as some opening, match that opening's shape directly or left-right mirrored. All other cells stay unchanged. Net: keys that fit a lock (or that branch) are marked red; the rest stay gray.
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!
;; A blue(1) wall has gap OPENINGS — 0-pockets under its top edge,
;; walled in on both sides. Gray(5) pieces are keys: a piece turns
;; red(2) if it BRANCHES (some cell has 3+ gray neighbors) or if its
;; top rows (as tall as an opening) match that opening's shape,
;; directly or mirrored. All other cells stay as they are.
(lambda (g)
(let ()
(define (blue? r c) (and (in-bounds? r c h w) (= (at g r c) 1)))
(define wall-rows
(filter (lambda (r) (any? (lambda (c) (blue? r c)) (range 0 w)))
(range 0 h)))
(define rmin (apply min wall-rows))
(define rmax (apply max wall-rows))
(define opencells
(for*/list ((r (in-range rmin (+ rmax 1))) (c (in-range 0 w))
#:when (and (= (at g r c) 0)
(any? (lambda (r2) (blue? r2 c))
(range rmin r))
(any? (lambda (c2) (blue? r c2))
(range 0 c))
(any? (lambda (c2) (blue? r c2))
(range (+ c 1) w))))
(list r c)))
(define openings
(map obj-cells
(objects (paint-cells (empty-grid h w 0) opencells 1) 0)))
(define op-norm (map normalize-cells openings))
(define op-flip
(map (lambda (ns) (normalize-cells (flip-cells-lr ns))) op-norm))
(define op-heights
(map (lambda (o) (+ 1 (- (max-of first o) (min-of first o))))
openings))
(define pieces
(map obj-cells
(filter (lambda (o) (= (obj-color o) 5)) (objects g 0))))
(define (branched? piece)
(any? (lambda (rc)
(>= (count-if (lambda (d)
(member (list (+ (first rc) (first d))
(+ (second rc) (second d)))
piece))
cardinal-deltas)
3))
piece))
(define (matches? piece)
(let ((top-r (min-of first piece)))
(any? (lambda (idx)
(let ((tn (normalize-cells
(filter (lambda (rc)
(< (first rc)
(+ top-r (nth op-heights idx))))
piece))))
(or (cells-equal? tn (nth op-norm idx))
(cells-equal? tn (nth op-flip idx)))))
(range 0 (length openings)))))
(recolor-cells g
(flatmap (lambda (piece)
(if (or (branched? piece) (matches? piece))
piece
(list)))
pieces)
2))))Provenance
- Generator
- generators/b6c499e1fa78/generator.py
- Notes and decisions
- generators/b6c499e1fa78/notes.md
- Review label
- reviewed_safe
- Generator SHA-256
- 7bc7dd004f746126773cb64939e742580acfeae3375bf11650103d5578329cc7
- Rule hash
- 4786a7fd9b5c
- Sources
- training
- Lesson seeds
- 20261108, 20261109, 20261110, 20261111, 20261112
- Reproduce lesson 1
arcpuzzles generate b6c499e1fa78 --count 1 --seed 20261108 --test 1