← d7f13ee34d85 · d833a288bd7d →
d8111f3f714d
On a 0-background grid, the unique pair of red (2) cells sharing a row or column forms a trunk. Join the trunk endpoints with green (3), then connect every remaining red perpendicularly to the trunk in green. Generated scenes vary dimensions, orientation, trunk placement/span, branch count (1..5), branch rows/columns, and both branch sides.
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* ((reds (for*/list ((r (range 0 h)) (c (range 0 w)) #:when (= (at g r c) 2))
(list r c)))
(pairs (for*/list ((i (range 0 (length reds))) (j (range (+ i 1) (length reds)))
#:when
(let ((a (list-ref reds i))
(bb (list-ref reds j)))
(or (= (first a) (first bb)) (= (second a) (second bb)))))
(list (list-ref reds i) (list-ref reds j))))
(trunk-pair (first pairs))
(t1 (first trunk-pair))
(t2 (second trunk-pair))
(result (make-hash)))
(for* ((r (range 0 h)) (c (range 0 w)))
(hash-set! result (list r c) (at g r c)))
(if (= (second t1) (second t2))
(let ((tc (second t1))
(r1 (min (first t1) (first t2)))
(r2 (max (first t1) (first t2))))
(for ((r (range (+ r1 1) r2))) (hash-set! result (list r tc) 3))
(for ((red reds))
(when
(and (not (equal? red t1)) (not (equal? red t2)))
(let ((rr (first red))
(rc (second red)))
(if (< rc tc)
(for ((cc (range (+ rc 1) tc)))
(hash-set! result (list rr cc) 3))
(for ((cc (range (+ tc 1) rc)))
(hash-set! result (list rr cc) 3)))))))
(let ((tr (first t1))
(c1 (min (second t1) (second t2)))
(c2 (max (second t1) (second t2))))
(for ((cc (range (+ c1 1) c2))) (hash-set! result (list tr cc) 3))
(for ((red reds))
(when
(and (not (equal? red t1)) (not (equal? red t2)))
(let ((rr (first red))
(rc (second red)))
(if (< rr tr)
(for ((r (range (+ rr 1) tr)))
(hash-set! result (list r rc) 3))
(for ((r (range (+ tr 1) rr)))
(hash-set! result (list r rc) 3))))))))
(cellmap g (r c v) (hash-ref result (list r c) 0))))))Provenance
- Generator
- generators/d8111f3f714d/generator.py
- Notes and decisions
- generators/d8111f3f714d/notes.md
- Review label
- reviewed_safe
- Generator SHA-256
- 31cd4a04282f3a8dd56008ccd12895aa2879cd8ed0a7c5161029cd7a5b21f4ab
- Rule hash
- 2a9d26bd68ef
- Sources
- augmented, training
- Lesson seeds
- 20261108, 20261109, 20261110, 20261111, 20261112
- Reproduce lesson 1
arcpuzzles generate d8111f3f714d --count 1 --seed 20261108 --test 1