← 996fc37f49d9 · 997c17fd6870 →
9971f3a5882c
A sparse color-3 rectangular lattice is stretched outward to boundaries implied by exterior color-6 markers. Boundary rows/columns move, internal complete rows/columns stay fixed, and markers remain color 6. Exact canvas, lattice, and marker profiles are observable from every returned input.
parametric family
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 (find-color g 3))
(marks (find-color g 6))
(r0 (min-of fst cells))
(r1 (max-of fst cells))
(c0 (min-of snd cells))
(c1 (max-of snd cells))
(above (filter (lambda (p)
(and (< (fst p) r0) (>= (snd p) c0) (<= (snd p) c1)))
marks))
(below (filter (lambda (p)
(and (> (fst p) r1) (>= (snd p) c0) (<= (snd p) c1)))
marks))
(lefts (filter (lambda (p) (< (snd p) c0)) marks))
(rights (filter (lambda (p) (> (snd p) c1)) marks))
(nr0 (if (empty? above) r0 (+ 1 (max-of fst above))))
(nr1 (if (empty? below) r1 (- (min-of fst below) 1)))
(nc0 (if (empty? lefts) c0 (+ 1 (max-of snd lefts))))
(nc1 (if (empty? rights) c1 (- (min-of snd rights) 1)))
(full-rows (filter (lambda (r)
(all? (lambda (c) (= (at g r c) 3))
(range c0 (+ c1 1))))
(range r0 (+ r1 1))))
(full-cols (filter (lambda (c)
(all? (lambda (r) (= (at g r c) 3))
(range r0 (+ r1 1))))
(range c0 (+ c1 1))))
(base (cellmap g (r c v) (if (= v 6) 6 0))))
(define (map-r r) (cond ((= r r0) nr0) ((= r r1) nr1) (else r)))
(define (map-c c) (cond ((= c c0) nc0) ((= c c1) nc1) (else c)))
(define (paint-h acc r)
(reduce (lambda (a c) (set-cell a r c 3)) acc (range nc0 (+ nc1 1))))
(define (paint-v acc c)
(reduce (lambda (a r) (set-cell a r c 3)) acc (range nr0 (+ nr1 1))))
(recolor-cells (reduce (lambda (acc c) (paint-v acc (map-c c)))
(reduce (lambda (acc r) (paint-h acc (map-r r)))
base
full-rows)
full-cols)
marks
6)))))Provenance
- Generator
- generators/9971f3a5882c/generator.py
- Notes and decisions
- generators/9971f3a5882c/notes.md
- Review label
- reviewed_safe
- Generator SHA-256
- ac6f4a04bb8a7947d942a3eb5232eafd065956f1d1226a3190e727f75ac84e14
- Rule hash
- f753f2c684d9
- Sources
- augmented, training
- Lesson seeds
- 20261108, 20261109, 20261110, 20261111, 20261112
- Reproduce lesson 1
arcpuzzles generate 9971f3a5882c --count 1 --seed 20261108 --test 1