← a5ad56f1e9d4 · a5e17b975ae0 →
a5bda33d14a0
Fill zero cells on the global nonzero bounding-box perimeter with 8; preserve all sources.
border drawingbounding boxsame-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! (let ((dummy 0)) (define (nonzero-cells grid) (filter (lambda (p) (not (= (at grid (first p) (second p)) 0))) (grid-positions grid))) (let ((cells (nonzero-cells g))) (if (empty? cells) g (let* ((bb (bbox-of-cells cells)) (r0 (first bb)) (c0 (second bb)) (r1 (third bb)) (c1 (fourth bb)) (border (remove-duplicates (append (map (lambda (c) (list r0 c)) (range c0 (+ c1 1))) (map (lambda (c) (list r1 c)) (range c0 (+ c1 1))) (map (lambda (r) (list r c0)) (range r0 (+ r1 1))) (map (lambda (r) (list r c1)) (range r0 (+ r1 1))))))) (for/fold ((out g)) ((p (in-list border))) (if (= (at out (first p) (second p)) 0) (set-cell out (first p) (second p) 8) out)))))))
Provenance
- Generator
- generators/a5bda33d14a0/generator.py
- Notes and decisions
- generators/a5bda33d14a0/notes.md
- Review label
- reviewed_safe
- Generator SHA-256
- 8095c7fca8bafafd63c796287fe7bba7ca1a85ea39b51542b868d913630192f5
- Rule hash
- eb3c0d7afaf9
- Sources
- bank:9a1b04175c5a
- Lesson seeds
- 20261108, 20261109, 20261110, 20261111, 20261112
- Reproduce lesson 1
arcpuzzles generate a5bda33d14a0 --count 1 --seed 20261108 --test 1