← d3633a9fb1cd · d38b0f2356c1 →
d377a54f20c6
Redraw every filled two-color object as a dominant-color frame with a rare-color edge-distance X and centered extension.
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 (grid)
(let* ((h (rows grid))
(w (cols grid))
(objs (objects-multicolor grid 0)))
(foldl (lambda (obj acc)
(with-bbox obj
(r1 c1 r2 c2)
(let* ((cells (obj-cells obj))
(color-freq (map (lambda (col)
(list col
(count-if (lambda (p)
(= (at grid
(first p)
(second p))
col))
cells)))
(remove-duplicates (map (lambda (p)
(at grid
(first p)
(second p)))
cells))))
(sorted-colors (sort-by color-freq
(lambda (f)
(- (second f)))))
(main-color (first (first sorted-colors)))
(marker-color (first (second sorted-colors)))
(hh (+ 1 (- r2 r1)))
(ww (+ 1 (- c2 c1)))
(ih (- hh 2))
(iw (- ww 2))
(max-dr (quotient (- ih 1) 2))
(max-dc (quotient (- iw 1) 2)))
(build-grid h
w
(r c)
(if (or
(< r r1)
(> r r2)
(< c c1)
(> c c2))
(at acc r c)
(let ((rr (- r r1))
(cc (- c c1)))
(cond
((or
(zero? rr)
(= rr (- hh 1))
(zero? cc)
(= cc (- ww 1))) main-color)
(else (let* ((ir (- rr 1))
(ic (- cc 1))
(dr (min ir
(- ih 1 ir)))
(dc (min ic
(- iw 1 ic))))
(if (or
(= dr dc)
(and
(= dr max-dr)
(>= dc dr))
(and
(= dc max-dc)
(>= dr dc)))
marker-color
0))))))))))
grid
objs))))Provenance
- Generator
- generators/d377a54f20c6/generator.py
- Notes and decisions
- generators/d377a54f20c6/notes.md
- Review label
- reviewed_safe
- Generator SHA-256
- 7e8d24ae74b9333212ec428db0fc18b4b727fb75523909971d4a027535be56c3
- Rule hash
- 108312a76f48
- Sources
- augmented, training
- Lesson seeds
- 20261108, 20261109, 20261110, 20261111, 20261112
- Reproduce lesson 1
arcpuzzles generate d377a54f20c6 --count 1 --seed 20261108 --test 1