← 5c126cb64bf7 · 5c9fd75979d1 →
5c577e82a07f
A 7..15 by 9..18 zero-background grid contains two or three distinct colors. Each color appears exactly four times at the Cartesian corners of one axis-aligned rectangle. Complete every rectangle's full border in its own color; preserve all rectangle interiors and all other cells.
parametric familycorner detectionrectangle completion
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 (e8b-colors-reading grid) (remove-duplicates (filter (lambda (v) (not (= v 0))) (map (lambda (p) (at grid (first p) (second p))) (grid-positions grid))))) (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)) ((color (in-list (sort (e8b-colors-reading g) <)))) (let* ((cells (find-color g color)) (rs (sort (remove-duplicates (map first cells)) <)) (cs (sort (remove-duplicates (map second cells)) <))) (for*/fold ((acc out)) ((r1 (in-list rs)) (r2 (in-list rs)) (c1 (in-list cs)) (c2 (in-list cs)) #:when (and (< r1 r2) (< c1 c2))) (let ((corners (list (list r1 c1) (list r1 c2) (list r2 c1) (list r2 c2)))) (if (all? (lambda (p) (member? p cells)) corners) (paint-cells acc (f14-border-cells r1 c1 r2 c2) color) acc)))))))
Provenance
- Generator
- generators/5c577e82a07f/generator.py
- Notes and decisions
- generators/5c577e82a07f/notes.md
- Review label
- reviewed_safe
- Generator SHA-256
- 4ca19b6bba81335a3774646ab3a6e294597eb7042abb66e9e15e6840e7018340
- Rule hash
- 486ca16c83e1
- Sources
- bank:05f1b1c78907
- Lesson seeds
- 20261108, 20261109, 20261110, 20261111, 20261112
- Reproduce lesson 1
arcpuzzles generate 5c577e82a07f --count 1 --seed 20261108 --test 1