← 77871cecd343 · 779887a0f354 →
778a00c38b8d
Recolor whole red (2) 4-connected components that contain an exact grid corner to green (3); preserve interior and non-corner-border red components, and preserve the inert color-5 distractor.
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* ((h (rows g))
(w (cols g))
(corners (list (list 0 0) (list 0 (- w 1)) (list (- h 1) 0) (list (- h 1) (- w 1)))))
(for/fold ([out g]) ([obj (in-list (filter (lambda (o) (= (obj-color o) 2)) (objects g 0)))])
(if (any? (lambda (p) (member? p corners)) (obj-cells obj))
(paint-cells out (obj-cells obj) 3)
out))))Provenance
- Generator
- generators/778a00c38b8d/generator.py
- Notes and decisions
- generators/778a00c38b8d/notes.md
- Review label
- reviewed_safe
- Generator SHA-256
- 1b08c65087fdc44acc2115822f36bab882a5aae4ca56cde12d0060766f4138ee
- Rule hash
- f1e155724595
- Sources
- bank:d3d681cdb82a
- Lesson seeds
- 20261108, 20261109, 20261110, 20261111, 20261112
- Reproduce lesson 1
arcpuzzles generate 778a00c38b8d --count 1 --seed 20261108 --test 1