← 8230189d9b9e · 827c34fc8e04 →
8265382d9c72
Two side-by-side colored objects; count interior background cells into a 3x3 summary.
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* ((objs (objects g 0))
(o1 (first objs))
(o2 (second objs))
(left-obj (if (<= (min-of snd (obj-cells o1))
(min-of snd (obj-cells o2)))
o1
o2))
(right-obj (if (eq? left-obj o1) o2 o1))
(count-holes (lambda (obj)
(let* ((cells (obj-cells obj))
(rs (map fst cells))
(cs (map snd cells))
(r0 (min-list rs))
(r1 (max-list rs))
(c0 (min-list cs))
(c1 (max-list cs)))
(count-if (lambda (p) p)
(for*/list ((r (range (+ r0 1) r1)) (c (range (+ c0 1) c1)))
(and (zero? (at g r c)) #t))))))
(n1 (count-holes left-obj))
(n2 (count-holes right-obj))
(c1 (obj-color left-obj))
(c2 (obj-color right-obj))
(r2-start (if (zero? (remainder n1 3))
(quotient n1 3)
(+ (quotient n1 3) 1))))
(build-grid 3
3
(r c)
(cond
((< (+ (* r 3) c) n1) c1)
((and (>= r r2-start) (< (+ (* (- r r2-start) 3) c) n2)) c2)
(else 0)))))))Provenance
- Generator
- generators/8265382d9c72/generator.py
- Notes and decisions
- generators/8265382d9c72/notes.md
- Review label
- reviewed_safe
- Generator SHA-256
- 9380299be4efab7b4e002b893dc823e2816011a0559c1eb4b9816b0574ac7d9b
- Rule hash
- 51ed0e1b2c02
- Sources
- training
- Lesson seeds
- 20261108, 20261109, 20261110, 20261111, 20261112
- Reproduce lesson 1
arcpuzzles generate 8265382d9c72 --count 1 --seed 20261108 --test 1