← 1261cb825a44 · 127f5b19efc1 →
126da449328f
Extend every colored singleton seed to a nearest border. Equal-distance ties use the authoritative priority top, then bottom, then left, then right.
directional_extensiondistance_to_border
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)) (fold-cells g g (lambda (out r c v) (if (= v 0) out (let* ((ds (list r (- (rows g) 1 r) c (- (cols g) 1 c))) (m (apply min ds)) (idx (let loop ((xs ds) (i 0)) (if (= (first xs) m) i (loop (rest xs) (+ i 1)))))) (cond ((= idx 0) (paint-cells out (for/list ((rr (in-range 0 (+ r 1)))) (list rr c)) v)) ((= idx 1) (paint-cells out (for/list ((rr (in-range r (rows g)))) (list rr c)) v)) ((= idx 2) (paint-cells out (for/list ((cc (in-range 0 (+ c 1)))) (list r cc)) v)) (else (paint-cells out (for/list ((cc (in-range c (cols g)))) (list r cc)) v)))))))))
Provenance
- Generator
- generators/126da449328f/generator.py
- Notes and decisions
- generators/126da449328f/notes.md
- Review label
- reviewed_safe
- Generator SHA-256
- 2be6f0000df78621d4bdd5f438fc151ac4ff1825f2c076cf674e82dc2cde7665
- Rule hash
- f5d1690cbbbb
- Sources
- bank:037ff40eee92
- Lesson seeds
- 20261108, 20261109, 20261110, 20261111, 20261112
- Reproduce lesson 1
arcpuzzles generate 126da449328f --count 1 --seed 20261108 --test 1