← c9db537b5068 · ca86ad084977 →
ca81880afbf3
Color-5 frames; fill complete square bbox interiors with color 2.
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 (filter (lambda (o) (= (obj-color o) 5)) (objects g 0))))
(define (square-zeros? zeros)
(if (empty? zeros)
#f
(let* ((r0 (min-of fst zeros))
(r1 (max-of fst zeros))
(c0 (min-of snd zeros))
(c1 (max-of snd zeros))
(side-r (+ 1 (- r1 r0)))
(side-c (+ 1 (- c1 c0))))
(and (= side-r side-c) (= (length zeros) (* side-r side-c))))))
(define (process acc obj)
(let* ((zeros (filter (lambda (p) (zero? (at g (fst p) (snd p))))
(bbox-interior-cells (obj-bbox obj)))))
(if (square-zeros? zeros) (paint-cells acc zeros 2) acc)))
(reduce process g objs)))))Provenance
- Generator
- generators/ca81880afbf3/generator.py
- Notes and decisions
- generators/ca81880afbf3/notes.md
- Review label
- reviewed_safe
- Generator SHA-256
- cdc97fbdd307ea47159278879e757650811c2a07694517f2b7783ed9f091d940
- Rule hash
- b9bced028d0a
- Sources
- training
- Lesson seeds
- 20261108, 20261109, 20261110, 20261111, 20261112
- Reproduce lesson 1
arcpuzzles generate ca81880afbf3 --count 1 --seed 20261108 --test 1