← a0fcc6f3396e · a16e387b682a →
a0ff437161da
Fill the rectangle from the lone colored cell to its nearest corner, resolving ties in UL/UR/LL/LR order.
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* ((bg 8)
(cell (find-first (lambda (p) (!= (at g (fst p) (snd p)) bg))
(flatmap (lambda (r)
(map (lambda (c) (cons r c)) (range 0 w)))
(range 0 h))))
(cr (fst cell))
(cc (snd cell))
(color (at g cr cc))
(corners (list (cons 0 0)
(cons 0 (- w 1))
(cons (- h 1) 0)
(cons (- h 1) (- w 1))))
(nearest (first (sort-by corners
(lambda (p)
(+ (abs (- cr (fst p)))
(abs (- cc (snd p))))))))
(nr (fst nearest))
(nc (snd nearest))
(r1 (min cr nr))
(r2 (max cr nr))
(c1 (min cc nc))
(c2 (max cc nc)))
(cellmap g
(r c v)
(if (and (>= r r1) (<= r r2) (>= c c1) (<= c c2)) color v))))))Provenance
- Generator
- generators/a0ff437161da/generator.py
- Notes and decisions
- generators/a0ff437161da/notes.md
- Review label
- reviewed_safe
- Generator SHA-256
- 83ea2c0febdad3b0712bfb0cabbf3e0f14695125c5099285feb641edff6eb25c
- Rule hash
- c70fab479c5e
- Sources
- training
- Lesson seeds
- 20261108, 20261109, 20261110, 20261111, 20261112
- Reproduce lesson 1
arcpuzzles generate a0ff437161da --count 1 --seed 20261108 --test 1