← 6fc2f51cfbb2 · 7017b91a367d →
6fde852adb54
Drop each column of the three-row top object through the obstacle field. Tip-ending columns stop before the first obstacle; body-only columns reach the floor, using the canonical bottom-component landing behavior.
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!
(let* ((h (rows g)) (w (cols g)) (bg (mode g -1))
(body (mode-list (filter (lambda (v) (!= v bg)) (row g 0))))
(cs (filter (lambda (c) (= (at g 0 c) body)) (range w)))
(tip (find-first (lambda (v) (and (!= v bg) (!= v body)))
(map (lambda (c) (at g 2 c)) cs)))
(gray (find-first
(lambda (v) (and (!= v bg) (!= v body) (!= v tip)))
(grid-colors g)))
(ups (list)))
(define (add r c v) (set! ups (cons (list r c v) ups)))
(define (gray-rows c)
(filter (lambda (r) (and (> r 2) (= (at g r c) gray))) (range h)))
(for* ((c cs) (r (range 3))) (add r c bg))
(for ((c cs))
(let ((v (at g 2 c)) (hits (gray-rows c)))
(if (= v tip)
(let ((land (if (empty? hits) (- h 1) (- (first hits) 1))))
(add (- land 2) c body)
(add (- land 1) c body)
(add land c tip))
(let ((lc c))
(when (and (not (empty? hits)) (>= (last hits) (- h 2)))
(let* ((blob (connected-region
g (last hits) c
(lambda (r cc value) (= value gray)) 4))
(cnt (make-hash)))
(for ((cell blob))
(hash-update! cnt (second cell) add1 0))
(let* ((mx (apply max (hash-values cnt)))
(cands (filter (lambda (cc) (= (hash-ref cnt cc) mx))
(hash-keys cnt))))
(set! lc (argmin
(lambda (cc) (+ (* 1000 (abs (- cc c))) cc))
cands))
(when (all? (lambda (n) (= n 1)) (hash-values cnt))
(let* ((r (first (first blob)))
(cols* (sort (hash-keys cnt) <))
(nl (count-where (lambda (cc) (< cc lc)) cols*))
(nr (count-where (lambda (cc) (> cc lc)) cols*))
(step (if (>= nr nl) 1 -1)))
(for ((k (range 1 (length cs))))
(let ((cc (+ lc (* step k))))
(when (and (in-bounds? r cc h w)
(= (at g r cc) gray))
(add r cc bg)))))))))
(for ((r (range (- h 3) h))) (add r lc body))))))
(foldl (lambda (u out)
(set-cell out (first u) (second u) (third u)))
g (reverse ups))))Provenance
- Generator
- generators/6fde852adb54/generator.py
- Notes and decisions
- generators/6fde852adb54/notes.md
- Review label
- reviewed_safe
- Generator SHA-256
- f7a534e4c744da6f32b2576f5831721a01f71a7ec0df48694fd97c52bbd176db
- Rule hash
- 4a2e9b9f15bf
- Sources
- training
- Lesson seeds
- 20261108, 20261109, 20261110, 20261111, 20261112
- Reproduce lesson 1
arcpuzzles generate 6fde852adb54 --count 1 --seed 20261108 --test 1