← c235e3da14f4 · c286f4a2923f →

c24bb478ceb4

A zero-background grid contains two or three distinct nonzero colors. For each color, exactly three cells occupy three corners of one axis-aligned rectangle and the fourth corner is blank. Complete every rectangle by painting only its missing corner with the same color.

completioncornersrectangles

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)) (for/fold ((out g)) ((color (in-list (range 1 10)))) (let* ((pts (find-color g color)) (rs (sort (remove-duplicates (map first pts)) <)) (cs (sort (remove-duplicates (map second pts)) <))) (for*/fold ((acc out)) ((r0 (in-list rs)) (r1 (in-list rs)) (c0 (in-list cs)) (c1 (in-list cs))) (if (or (<= r1 r0) (<= c1 c0)) acc (let* ((corners (list (list r0 c0) (list r0 c1) (list r1 c0) (list r1 c1))) (present (map (lambda (p) (member? p pts)) corners))) (if (= (count-where (lambda (x) x) present) 3) (let ((missing (first (filter (lambda (p) (= (at g (first p) (second p)) 0)) corners)))) (set-cell acc (first missing) (second missing) color)) acc))))))))

Provenance

Generator
generators/c24bb478ceb4/generator.py
Notes and decisions
generators/c24bb478ceb4/notes.md
Review label
reviewed_safe
Generator SHA-256
18096bd474f9f6825d4f9257c8949c19741d94d4ecfce01fc0f1770ec002d244
Rule hash
237d8e244b45
Sources
bank:f49e478ddaeb
Lesson seeds
20261108, 20261109, 20261110, 20261111, 20261112
Reproduce lesson 1
arcpuzzles generate c24bb478ceb4 --count 1 --seed 20261108 --test 1