← 48283e01e8ab · 4842b1ca59e2 →
483682b75e12
Shift every non-7/non-8 connected component upward by its total cell count while preserving the cyan floor and cell colors.
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! (lambda (g)
(let* ((h (rows g))
(w (cols g)))
(let* ((visited (make-hash))
(result (make-hash)))
(for* ((r (range 0 h)) (c (range 0 w)))
(let ((v (at g r c))) (hash-set! result (list r c) (if (= v 8) 8 7))))
(for* ((r (range 0 h)) (c (range 0 w)))
(when
(and
(!= (at g r c) 7)
(!= (at g r c) 8)
(not (hash-has-key? visited (list r c))))
(let ((cells (list))
(size 0))
(let bfs
((q (list (list r c))))
(unless
(null? q)
(let ((cur (car q)))
(cond
((hash-has-key? visited cur) (bfs (cdr q)))
((or
(< (first cur) 0)
(>= (first cur) h)
(< (second cur) 0)
(>= (second cur) w)) (bfs (cdr q)))
((or
(= (at g (first cur) (second cur)) 7)
(= (at g (first cur) (second cur)) 8)) (bfs (cdr q)))
(else (hash-set! visited cur #t)
(set! cells (cons cur cells))
(set! size (+ size 1))
(let ((cr (first cur))
(cc (second cur)))
(bfs (append (cdr q)
(list (list (- cr 1) cc)
(list (+ cr 1) cc)
(list cr (- cc 1))
(list cr (+ cc 1)))))))))))
(for ((cell cells))
(let ((nr (- (first cell) size))
(nc (second cell))
(v (at g (first cell) (second cell))))
(when (>= nr 0) (hash-set! result (list nr nc) v)))))))
(cellmap g (r c v) (hash-ref result (list r c) 7))))))Provenance
- Generator
- generators/483682b75e12/generator.py
- Notes and decisions
- generators/483682b75e12/notes.md
- Review label
- reviewed_safe
- Generator SHA-256
- 189fbe70222e7cb05feeb7114eb0ad2a3f4f557e532cf23e3ea0a8c686979f7e
- Rule hash
- a2a5ebf00ff5
- Sources
- augmented, training
- Lesson seeds
- 20261108, 20261109, 20261110, 20261111, 20261112
- Reproduce lesson 1
arcpuzzles generate 483682b75e12 --count 1 --seed 20261108 --test 1