← af840d59f24c · b0087e6a72e9 →
af9ade3c3e16
A zero-background grid contains two to five strictly nested hollow yellow(4) rectangular frames and k red(2) marker cells outside the outer frame. A separate color-6 triomino is an irrelevant distractor. Order the frames by bounding-box area from largest/outermost to smallest/innermost and recolor the k-th frame border cyan(8).
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!
(let ((dummy 0))
(define (cell<? a b)
(or (< (first a) (first b))
(and (= (first a) (first b)) (< (second a) (second b)))))
(define (rect-border r0 c0 r1 c1)
(filter (lambda (p)
(or (= (first p) r0) (= (first p) r1)
(= (second p) c0) (= (second p) c1)))
(positions-in-rect r0 c0 r1 c1)))
(define (hollow-rect? obj)
(let ((bb (obj-bbox obj)))
(and (>= (- (third bb) (first bb)) 2)
(>= (- (fourth bb) (second bb)) 2)
(equal? (sort (obj-cells obj) cell<?)
(sort (rect-border (first bb) (second bb) (third bb) (fourth bb)) cell<?)))))
(define frames
(sort (filter (lambda (o) (and (= (obj-color o) 4) (hollow-rect? o))) (objects g 0))
(lambda (a b)
(> (* (obj-h a) (obj-w a)) (* (obj-h b) (obj-w b))))))
(define k (length (find-color g 2)))
(if (and (>= k 1) (<= k (length frames)))
(paint-cells g (obj-cells (list-ref frames (- k 1))) 8)
g)))Provenance
- Generator
- generators/af9ade3c3e16/generator.py
- Notes and decisions
- generators/af9ade3c3e16/notes.md
- Review label
- reviewed_safe
- Generator SHA-256
- 7fdb17da0eaece92af735b304034b5a5e7694a2ee06e0d7fc0f20913fcaad2e1
- Rule hash
- b6731002573d
- Sources
- bank:3cb9777539c7
- Lesson seeds
- 20261108, 20261109, 20261110, 20261111, 20261112
- Reproduce lesson 1
arcpuzzles generate af9ade3c3e16 --count 1 --seed 20261108 --test 1