← ca86ad084977 · cadfb7a1ae72 →
cad61106e2b9
Three strictly nested, disconnected color-4 rectangular frames plus a singleton control marker and an irrelevant singleton distractor. Rank the frames by area, largest first; control 1/2/3 selects outer/middle/inner. Fill zero cells inside the selected frame with 8, excluding the complete bounding box of the next inner frame when one exists.
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!
(let ((dummy 0))
(define ctrl (third (first (filter (lambda (cell) (let ((v (third cell))) (and (>= v 1) (<= v 3)))) (grid-cells g)))))
(define (border-cells obj)
(filter (lambda (p) (or (= (first p) (obj-r1 obj)) (= (first p) (obj-r2 obj))
(= (second p) (obj-c1 obj)) (= (second p) (obj-c2 obj))))
(positions-in-rect (obj-r1 obj) (obj-c1 obj) (obj-r2 obj) (obj-c2 obj))))
(define (cell<? a b)
(or (< (first a) (first b))
(and (= (first a) (first b)) (< (second a) (second b)))))
(define frames
(sort (filter (lambda (obj) (and (= (obj-color obj) 4)
(equal? (sort (obj-cells obj) cell<?) (sort (border-cells obj) cell<?))))
(objects g 0))
(lambda (a b) (> (* (obj-h a) (obj-w a)) (* (obj-h b) (obj-w b))))))
(define idx (- ctrl 1))
(define selected (and (< idx (length frames)) (list-ref frames idx)))
(define inner (and (< (+ idx 1) (length frames)) (list-ref frames (+ idx 1))))
(if selected
(let* ((inside (positions-in-rect (+ (obj-r1 selected) 1) (+ (obj-c1 selected) 1)
(- (obj-r2 selected) 1) (- (obj-c2 selected) 1)))
(fillable (filter (lambda (p)
(and (= (at g (first p) (second p)) 0)
(or (eq? inner #f)
(not (and (>= (first p) (obj-r1 inner)) (<= (first p) (obj-r2 inner))
(>= (second p) (obj-c1 inner)) (<= (second p) (obj-c2 inner)))))))
inside)))
(paint-cells g fillable 8))
g)))Provenance
- Generator
- generators/cad61106e2b9/generator.py
- Notes and decisions
- generators/cad61106e2b9/notes.md
- Review label
- reviewed_safe
- Generator SHA-256
- 21ab0a96d74b9b687bd37dd286a336ef7a6064b4310041fca095f9d7c6fc84d1
- Rule hash
- a3ad6fb565b1
- Sources
- bank:385e738e9e70
- Lesson seeds
- 20261108, 20261109, 20261110, 20261111, 20261112
- Reproduce lesson 1
arcpuzzles generate cad61106e2b9 --count 1 --seed 20261108 --test 1