← 241567a35764 · 249b59452da6 →
2496d7db1883
Four wall-separated rooms contain two majority-filled examples and two motif-only queries. Exact magenta(6) coordinates relative to each room map a query to its example fill color. Scheduled row/grid layouts, grouped/interleaved roles, same/reverse query order, and offset-sensitive motifs rebut spatial and reading-order shortcuts.
room-level analogical transfer, motif recognition, learned mapping
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!
;; Walls (1/7/9) partition the grid into 4-connected rooms. EXAMPLE
;; rooms hold a majority fill color (not 0/6): each maps its motif —
;; the room's magenta(6) cells normalized to its bbox origin — to that
;; fill. Rooms with no majority fill are QUERIES: paint each one
;; entirely with the fill its motif maps to. Everything else passes
;; through unchanged.
(lambda (g)
(let ()
(define (wall? v) (member? v (list 1 7 9)))
(define rooms
(sort (objects (grid-from-fn h w (lambda (r c)
(if (wall? (at g r c)) 0 1)))
0)
(lambda (a b)
(or (< (obj-r1 a) (obj-r1 b))
(and (= (obj-r1 a) (obj-r1 b))
(< (obj-c1 a) (obj-c1 b)))))))
(define (motif room)
(sort (filter values
(map (lambda (p)
(if (= (at g (first p) (second p)) 6)
(list (- (first p) (obj-r1 room))
(- (second p) (obj-c1 room)))
#f))
(obj-cells room)))
cell<))
(define (fill-of room)
;; majority color of the room excluding 0/6 (ties -> larger), else #f
(let* ((vals (map (lambda (p) (at g (first p) (second p)))
(obj-cells room)))
(cnt (lambda (col) (count-if (lambda (v) (= v col)) vals)))
(ranked (sort (unique (filter (lambda (v)
(and (> v 0) (not (= v 6))))
vals))
(lambda (a b)
(or (> (cnt a) (cnt b))
(and (= (cnt a) (cnt b)) (> a b)))))))
(if (and (pair? ranked)
(> (cnt (first ranked)) (quotient (length vals) 2)))
(first ranked)
#f)))
(define infos
(map (lambda (room) (list room (motif room) (fill-of room))) rooms))
(define mapping (filter (lambda (i) (third i)) infos))
(for/fold ((out g)) ((i (in-list infos)))
(if (third i)
out
(paint-cells out (obj-cells (first i))
(third (find (lambda (e) (equal? (second e) (second i)))
mapping))))))))Provenance
- Generator
- generators/2496d7db1883/generator.py
- Notes and decisions
- generators/2496d7db1883/notes.md
- Review label
- reviewed_safe
- Generator SHA-256
- 44e2cd249e877dc3f3cacaf803623f44cd89fbd20eaac0047a72d6c3c7ede051
- Rule hash
- 0c6fcbc89830
- Sources
- bank:445ef4275a64
- Lesson seeds
- 20261108, 20261109, 20261110, 20261111, 20261112
- Reproduce lesson 1
arcpuzzles generate 2496d7db1883 --count 1 --seed 20261108 --test 1