← bdcb4c9eb6bd · be02b305dd1e →
bdd177308a5b
A non-{0,5} template lies in the top-left 3x3 chamber, whose bottom row and right column form a seven-cell gray L-frame. Outside the cue are 3..5 colored objects. Exactly one object has the template's exact translation-normalized shape and orientation; recolor only that object to gray (5). Rotated/reflected and different-size objects are decoys.
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! (lambda (g)
(let* ((h (rows g))
(w (cols g)))
(let* ((hh (rows g))
(ww (cols g))
(template (list))
(dummy-t (for* ((r (range 0 3)) (c (range 0 3)))
(let ((v (at g r c)))
(when
(and (!= v 0) (!= v 5))
(set! template (cons (list r c) template))))))
(t-rmin (min-of first template))
(t-cmin (min-of second template))
(t-norm (sort (map (lambda (p)
(list (- (first p) t-rmin) (- (second p) t-cmin)))
template)
(lambda (a b)
(if (= (first a) (first b))
(< (second a) (second b))
(< (first a) (first b))))))
(visited (make-hash))
(objs (list))
(dummy-o (for* ((r (range 0 hh)) (c (range 0 ww)))
(let ((v (at g r c)))
(when
(and
(!= v 0)
(!= v 5)
(not (hash-has-key? visited (list r c))))
(let ((comp (list))
(oc v)
(stack (list (list r c))))
(let bfs
((stk stack))
(unless
(null? stk)
(let* ((cur (car stk))
(rest (cdr stk))
(cr (first cur))
(cc (second cur)))
(if (or
(< cr 0)
(>= cr hh)
(< cc 0)
(>= cc ww)
(!= (at g cr cc) oc)
(hash-has-key? visited
(list cr cc)))
(bfs rest)
(begin
(hash-set! visited
(list cr cc)
#t)
(set! comp
(cons (list cr cc) comp))
(bfs (append (list (list (- cr 1)
cc)
(list (+ cr 1)
cc)
(list cr
(- cc 1))
(list cr
(+ cc 1)))
rest)))))))
(set! objs (cons comp objs)))))))
(to-recolor #f)
(dummy-m (for ((obj objs))
(when
(and
(not to-recolor)
(not (for/or ((cell obj))
(and
(< (first cell) 3)
(< (second cell) 3)))))
(let* ((o-rmin (min-of first obj))
(o-cmin (min-of second obj))
(o-norm (sort (map (lambda (p)
(list (- (first p) o-rmin)
(- (second p) o-cmin)))
obj)
(lambda (a b)
(if (= (first a) (first b))
(< (second a) (second b))
(< (first a) (first b)))))))
(when (equal? o-norm t-norm) (set! to-recolor obj))))))
(recolor-set (make-hash))
(dummy-r (when
to-recolor
(for ((cell to-recolor)) (hash-set! recolor-set cell #t)))))
(build-grid hh
ww
(r c)
(if (hash-has-key? recolor-set (list r c)) 5 (at g r c)))))))Provenance
- Generator
- generators/bdd177308a5b/generator.py
- Notes and decisions
- generators/bdd177308a5b/notes.md
- Review label
- reviewed_safe
- Generator SHA-256
- 3e207704a49b6f341c1cb9fc7604a16394eee391f83cf47331dd0a224d9b0650
- Rule hash
- 5b8904c8dace
- Sources
- augmented, training
- Lesson seeds
- 20261108, 20261109, 20261110, 20261111, 20261112
- Reproduce lesson 1
arcpuzzles generate bdd177308a5b --count 1 --seed 20261108 --test 1