← caffd29045bc · cb439f1b5f4a →
cb3541dd8827
One to three separate arbitrary-colour rectangular frames each contain one differently coloured seed; fill each entire interior with its own seed colour.
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 (f14-same-cells? a b) (and (= (length a) (length b)) (all? (lambda (p) (member? p b)) a))) (define (f14-border-cells r0 c0 r1 c1) (for*/list ((r (in-range r0 (+ r1 1))) (c (in-range c0 (+ c1 1))) #:when (or (= r r0) (= r r1) (= c c0) (= c c1))) (list r c))) (for/fold ((out g)) ((obj (in-list (objects g 0)))) (let* ((bb (obj-bbox obj)) (r0 (first bb)) (c0 (second bb)) (r1 (third bb)) (c1 (fourth bb)) (border (f14-border-cells r0 c0 r1 c1)) (inner-colors (remove-duplicates (filter (lambda (v) (not (member? v (list 0 (obj-color obj))))) (for*/list ((r (in-range (+ r0 1) r1)) (c (in-range (+ c0 1) c1))) (at g r c)))))) (if (and (f14-same-cells? (obj-cells obj) border) (>= (- r1 r0) 2) (>= (- c1 c0) 2) (= (length inner-colors) 1)) (paint-cells out (positions-in-rect (+ r0 1) (+ c0 1) (- r1 1) (- c1 1)) (first inner-colors)) out)))))
Provenance
- Generator
- generators/cb3541dd8827/generator.py
- Notes and decisions
- generators/cb3541dd8827/notes.md
- Review label
- reviewed_safe
- Generator SHA-256
- dba114b475885e0e6af4b698085622a62bf3aaf87dffc09b75d0f0b547a30fea
- Rule hash
- 6f461f08806c
- Sources
- bank:e14e4b5836bc
- Lesson seeds
- 20261108, 20261109, 20261110, 20261111, 20261112
- Reproduce lesson 1
arcpuzzles generate cb3541dd8827 --count 1 --seed 20261108 --test 1