← af373b71d67d · af840d59f24c →
af6e765bcc41
On a zero background, fill the zero interior of every exact hollow orange (7) rectangular frame with cyan (8). Preserve the orange outline, broken orange near-frames, non-orange frames, and all unrelated cells.
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 (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)))
(for/fold ([out g]) ([obj (filter (lambda (o) (= (obj-color o) 7)) (objects g 0))])
(let* ((bb (obj-bbox obj))
(r0 (first bb)) (c0 (second bb)) (r1 (third bb)) (c1 (fourth bb))
(inside (filter (lambda (p) (= (at g (first p) (second p)) 0))
(positions-in-rect (+ r0 1) (+ c0 1) (- r1 1) (- c1 1)))))
(if (same-cells? (obj-cells obj) (rect-border r0 c0 r1 c1))
(paint-cells out inside 8)
out)))))Provenance
- Generator
- generators/af6e765bcc41/generator.py
- Notes and decisions
- generators/af6e765bcc41/notes.md
- Review label
- reviewed_safe
- Generator SHA-256
- 3f4f976c5c4f688325d81022ce8b6a556404336a09e10b0a7517ed73ef04c60f
- Rule hash
- c8f338ea5e1e
- Sources
- bank:f4facb1306bd
- Lesson seeds
- 20261108, 20261109, 20261110, 20261111, 20261112
- Reproduce lesson 1
arcpuzzles generate af6e765bcc41 --count 1 --seed 20261108 --test 1