← af6e765bcc41 · af9ade3c3e16 →
af840d59f24c
Replace every zero by the left-to-right rank of its global zero-containing column.
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* ((zeros (find-color g 0))
(zcols (sort (unique (map snd zeros)) <)))
(reduce (lambda (acc p)
(let ((rank (+ 1 (count-if (lambda (c) (< c (snd p))) zcols))))
(set-cell acc (fst p) (snd p) rank)))
g
zeros)))))Provenance
- Generator
- generators/af840d59f24c/generator.py
- Notes and decisions
- generators/af840d59f24c/notes.md
- Review label
- reviewed_safe
- Generator SHA-256
- d8473b42ac2c72d3ca39b610239caf5d93f1a7d5e50270fdd0f2854ddc332aea
- Rule hash
- dbb5a0b9e901
- Sources
- training
- Lesson seeds
- 20261108, 20261109, 20261110, 20261111, 20261112
- Reproduce lesson 1
arcpuzzles generate af840d59f24c --count 1 --seed 20261108 --test 1