← 55cfa127936a · 56169a1e5c1d →
56072bfdb820
An 11x11 color-7 field is divided by color-6 lines into nine 3x3 tiles. Exactly two tiles hold color-2 diamonds. Their relative placement proposes one color-5 and one color-8 diamond, with out-of-bounds proposals clipped, so zero, one, or two diamonds may be added. Any input color-5 or color-8 diamond is contamination and instead yields a 16x16 color-7 output.
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* ((tile-color (lambda (tr tc)
(let* ((r0 (* tr 4))
(c0 (* tc 4))
(vals (filter (lambda (v)
(and (!= v 7) (!= v 6)))
(map (lambda (p)
(at g (first p) (second p)))
(positions-in-rect r0
c0
(+ r0 2)
(+ c0 2))))))
(if (empty? vals) 0 (first vals)))))
(symbols (filter (lambda (entry) (!= (third entry) 0))
(flatmap (lambda (tr)
(map (lambda (tc)
(list tr tc (tile-color tr tc)))
(range 0 3)))
(range 0 3))))
(bad? (any? (lambda (entry) (!= (third entry) 2)) symbols)))
(if bad?
(empty-grid 16 16 7)
(let* ((twos (map (lambda (entry) (list (first entry) (second entry)))
symbols))
(p1 (first twos))
(p2 (second twos))
(r1 (first p1))
(c1 (second p1))
(r2 (first p2))
(c2 (second p2))
(extras (cond
((= c1 c2) (let ((r (- (min r1 r2) 1))
(c c1))
(list (list r (- c 1) 5) (list r (+ c 1) 8))))
((= r1 r2) (let ((r r1)
(c (- (min c1 c2) 1)))
(list (list (- r 1) c 8) (list (+ r 1) c 5))))
((< c2 c1) (list (list r2 (- c2 1) 8) (list (+ r2 1) c2 5)))
(else (list (list r2 (+ c2 1) 8) (list (+ r2 1) c2 5)))))
(items (append symbols
(filter (lambda (e)
(and
(>= (first e) 0)
(< (first e) 3)
(>= (second e) 0)
(< (second e) 3)))
extras)))
(lookup (lambda (tr tc)
(let ((hit (find-first (lambda (entry)
(and
(= (first entry) tr)
(= (second entry) tc)))
items)))
(if hit (third hit) 0)))))
(build-grid 11
11
(r c)
(if (or (= r 3) (= r 7) (= c 3) (= c 7))
6
(let* ((tr (quotient r 4))
(tc (quotient c 4))
(lr (modulo r 4))
(lc (modulo c 4))
(v (lookup tr tc)))
(if (and
(!= v 0)
(or
(and (= lr 1) (or (zero? lc) (= lc 2)))
(and (= lc 1) (or (zero? lr) (= lr 2)))))
v
7))))))))))Provenance
- Generator
- generators/56072bfdb820/generator.py
- Notes and decisions
- generators/56072bfdb820/notes.md
- Review label
- reviewed_safe
- Generator SHA-256
- 04e256923e2d2d9b7acdec52ce7f78203b5d58c1b5a526830b8cb1caf8c3a488
- Rule hash
- 5eec51381abd
- Sources
- augmented, training
- Lesson seeds
- 20261108, 20261109, 20261110, 20261111, 20261112
- Reproduce lesson 1
arcpuzzles generate 56072bfdb820 --count 1 --seed 20261108 --test 1