← 89a9a629c544 · 89c85768abe1 →
89ab40aedfe4
Full-height foreground carrier columns mark regularly spaced slots. Sort the following foreground/zero bit columns by ascending foreground population while leaving carriers and zero separators fixed; equal-count columns keep their original left-to-right order.
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* ((fg (at g 0 0))
(starts (filter (lambda (c)
(and
(< (+ c 1) w)
(= (at g 0 c) fg)
(= (at g 0 (+ c 1)) fg)
(or (zero? c) (zero? (at g 0 (- c 1))))))
(range 0 w))))
(define (col-count c)
(count-if (lambda (r) (= (at g r (+ c 1)) fg)) (range 0 h)))
(define ordered
(sort starts
(lambda (a b)
(let ((ca (col-count a))
(cb (col-count b)))
(if (= ca cb) (< a b) (< ca cb))))))
(define (copy-col acc dst src)
(reduce (lambda (a r) (set-cell a r (+ dst 1) (at g r (+ src 1))))
acc
(range 0 h)))
(let loop
((acc g) (dsts starts) (srcs ordered))
(if (empty? dsts)
acc
(loop (copy-col acc (fst dsts) (fst srcs)) (cdr dsts) (cdr srcs))))))))Provenance
- Generator
- generators/89ab40aedfe4/generator.py
- Notes and decisions
- generators/89ab40aedfe4/notes.md
- Review label
- reviewed_safe
- Generator SHA-256
- 2800dab77009ba054309c218507cd1e4a735860dc0f790ade8399d33888deb6b
- Rule hash
- 4bc48cdc5789
- Sources
- training
- Lesson seeds
- 20261108, 20261109, 20261110, 20261111, 20261112
- Reproduce lesson 1
arcpuzzles generate 89ab40aedfe4 --count 1 --seed 20261108 --test 1