← c0f52d961a7c · c181f41a09f0 →
c130e51c4310
Erase a colored cue outside a purple frame, then copy the cue's full bounding-box edges to the corresponding inner frame edges; if all four cue edges are full, fill the complete frame interior.
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* ((bg (mode g 0)) (six-obj (findf (lambda (o) (= (obj-color o) 6)) (objects g bg)))) (with-bbox six-obj (fr1 fc1 fr2 fc2) (let* ((ir1 (+ fr1 1)) (ic1 (+ fc1 1)) (ir2 (- fr2 1)) (ic2 (- fc2 1)) (shape-cells (for*/list ((r (range 0 h)) (c (range 0 w)) #:when (and (!= (at g r c) bg) (!= (at g r c) 6))) (list r c (at g r c)))) (shape-color (third (first shape-cells))) (srs (map first shape-cells)) (scs (map second shape-cells)) (sr1 (min-list srs)) (sr2 (max-list srs)) (sc1 (min-list scs)) (sc2 (max-list scs)) (sh (+ 1 (- sr2 sr1))) (sw (+ 1 (- sc2 sc1))) (shape-filled? (lambda (sr sc) (= (at g (+ sr1 sr) (+ sc1 sc)) shape-color))) (row-full? (lambda (sr) (let loop ((c 0)) (cond ((>= c sw) #t) ((not (shape-filled? sr c)) #f) (else (loop (+ c 1))))))) (col-full? (lambda (sc) (let loop ((r 0)) (cond ((>= r sh) #t) ((not (shape-filled? r sc)) #f) (else (loop (+ r 1))))))) (top-edge (row-full? 0)) (bot-edge (row-full? (- sh 1))) (left-edge (col-full? 0)) (right-edge (col-full? (- sw 1))) (all-edges (and top-edge bot-edge left-edge right-edge)) (g1 (for/fold ((out g)) ((sc shape-cells)) (set-cell out (first sc) (second sc) bg)))) (cond (all-edges (for*/fold ((out g1)) ((r (range ir1 (+ ir2 1))) (c (range ic1 (+ ic2 1)))) (set-cell out r c shape-color))) (else (let* ((g2 (if top-edge (for/fold ((o g1)) ((c (range ic1 (+ ic2 1)))) (set-cell o ir1 c shape-color)) g1)) (g3 (if bot-edge (for/fold ((o g2)) ((c (range ic1 (+ ic2 1)))) (set-cell o ir2 c shape-color)) g2)) (g4 (if left-edge (for/fold ((o g3)) ((r (range ir1 (+ ir2 1)))) (set-cell o r ic1 shape-color)) g3)) (g5 (if right-edge (for/fold ((o g4)) ((r (range ir1 (+ ir2 1)))) (set-cell o r ic2 shape-color)) g4))) g5)))))))))
Provenance
- Generator
- generators/c130e51c4310/generator.py
- Notes and decisions
- generators/c130e51c4310/notes.md
- Review label
- reviewed_safe
- Generator SHA-256
- cafd9722360a75b57e6c060263e223521b2db3bf1b4c112c388d0f975f770ea4
- Rule hash
- 3d57c85d52e8
- Sources
- augmented, training
- Lesson seeds
- 20261108, 20261109, 20261110, 20261111, 20261112
- Reproduce lesson 1
arcpuzzles generate c130e51c4310 --count 1 --seed 20261108 --test 1