← 2a6aac780e6d · 2aa2f3b2ed8f →
2a928a0f8378
Keep every row containing at least one nonzero cell, preserve each row exactly and preserve their top-to-bottom order, move those rows to the top, then append all-zero rows to retain the original height and width.
order preservationrow filteringsame-size transform
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! ;; Pack the non-empty ROWS to the top; empty rows collect at the bottom. (let ((kept (filter (lambda (row) (any? (lambda (v) (!= v 0)) row)) g))) (append kept (make-list (- h (length kept)) (make-list w 0)))))
Provenance
- Generator
- generators/2a928a0f8378/generator.py
- Notes and decisions
- generators/2a928a0f8378/notes.md
- Review label
- reviewed_safe
- Generator SHA-256
- e341f2b38e7d1dd974e84537f88f37311d6ad6d6267affc92b61c85d57323a65
- Rule hash
- 12cdce90baa1
- Sources
- bank:db2a1cce4e4e
- Lesson seeds
- 20261108, 20261109, 20261110, 20261111, 20261112
- Reproduce lesson 1
arcpuzzles generate 2a928a0f8378 --count 1 --seed 20261108 --test 1