← 42fb6b33deea · 43cca8eff94f →
4326f5c2ded0
Shear every nonzero cell left by bottommost_row minus its row, preserving colors and canvas size.
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* ((cells (for*/list ((r (range 0 h)) (c (range 0 w)) #:when (!= (at g r c) 0))
(list r c (at g r c))))
(max-r (max-of first cells))
(new-cells (for/list ((cell cells))
(let* ((cr (first cell))
(cc (second cell))
(cv (third cell))
(new-c (- cc (- max-r cr))))
(list cr new-c cv))))
(pos-map (make-hash)))
(for ((nc new-cells))
(let ((nr (first nc))
(nnc (second nc))
(nv (third nc)))
(when
(and (>= nnc 0) (< nnc w) (>= nr 0) (< nr h))
(hash-set! pos-map (list nr nnc) nv))))
(cellmap g
(r c v)
(cond
((hash-has-key? pos-map (list r c)) (hash-ref pos-map (list r c)))
(else 0)))))))Provenance
- Generator
- generators/4326f5c2ded0/generator.py
- Notes and decisions
- generators/4326f5c2ded0/notes.md
- Review label
- reviewed_safe
- Generator SHA-256
- f7dba35a2c0ed342508613c89e422470a541bb73d84d2b94cb242217aef271d7
- Rule hash
- 884d94dde3d6
- Sources
- augmented, training
- Lesson seeds
- 20261108, 20261109, 20261110, 20261111, 20261112
- Reproduce lesson 1
arcpuzzles generate 4326f5c2ded0 --count 1 --seed 20261108 --test 1