← 0e4adc584fa1 · 0eabac67e70a →
0e71518de287
A 9-10 by 10-12 zero-background grid contains exactly two disjoint hollow yellow rectangular frames and one non-yellow marker. The marker lies immediately above, below, left, or right of a frame border. Select the first adjacent frame in row-major frame order, fill only its zero interior cells with the marker color, and leave the marker, both yellow borders, and the other hollow frame unchanged. Ordinary generated rows make the marker adjacent to exactly one frame; self_check also accepts the canonical tie case because the pinned Racket authority resolves it by first-frame order.
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 (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 (same-cells? a b)
(and (= (length a) (length b)) (all? (lambda (p) (member? p b)) a)))
(define (marker-for bb markers)
(let ((r0 (first bb)) (c0 (second bb)) (r1 (third bb)) (c1 (fourth bb)))
(find-first
(lambda (m)
(let ((r (first m)) (c (second m)))
(or (and (= r (- r0 1)) (<= c0 c) (<= c c1))
(and (= r (+ r1 1)) (<= c0 c) (<= c c1))
(and (= c (- c0 1)) (<= r0 r) (<= r r1))
(and (= c (+ c1 1)) (<= r0 r) (<= r r1)))))
markers)))
(let* ((frames (filter (lambda (o)
(and (= (obj-color o) 4)
;; Bounding box (r1 c1 r2 c2) of o
(let ((bb (obj-bbox o)))
(same-cells? (obj-cells o) (rect-border (first bb) (second bb) (third bb) (fourth bb))))))
(objects g 0)))
;; Cells filtered out of every (r,c) position
(markers (filter (lambda (p) (let ((v (at g (first p) (second p)))) (and (not (= v 0)) (not (= v 4))))) (grid-positions g)))
(hit (find-first (lambda (o) (marker-for (obj-bbox o) markers)) frames)))
(if hit
;; Bounding box (r1 c1 r2 c2) of hit
(let* ((bb (obj-bbox hit))
(marker (marker-for bb markers))
(fill (at g (first marker) (second marker)))
;; Positions of every color 0 cell
(inside (filter (lambda (p) (= (at g (first p) (second p)) 0))
(positions-in-rect (+ (first bb) 1) (+ (second bb) 1) (- (third bb) 1) (- (fourth bb) 1)))))
(paint-cells g inside fill))
g))))Provenance
- Generator
- generators/0e71518de287/generator.py
- Notes and decisions
- generators/0e71518de287/notes.md
- Review label
- reviewed_safe
- Generator SHA-256
- b08491afbcd80e85a28beb2fdda61563beb99519d6336a023b11cb942cbb7670
- Rule hash
- 1e4e48495a33
- Sources
- bank:53ccebf2a36f
- Lesson seeds
- 20261108, 20261109, 20261110, 20261111, 20261112
- Reproduce lesson 1
arcpuzzles generate 0e71518de287 --count 1 --seed 20261108 --test 1