← 1b39c0e8ebc7 · 1b6b40a92e4f →
1b54d2fb6f09
Find each 4-connected red component that is a gapless horizontal or vertical segment. Recolor only its two extreme endpoints cyan (8); leave the red interior unchanged. Bent red components and every non-red object are distractors and remain unchanged.
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!
;; Only red connected components are candidates; every other color is a distractor.
(for/fold ([out g]) ([obj (filter (lambda (o) (= (obj-color o) 2)) (objects g 0))])
(let* ((cells (obj-cells obj))
(rs (map first cells))
(cs (map second cells)))
(cond
;; Recolor the two horizontal extremes; preserve every interior cell.
[(and (>= (length cells) 2) (= (apply min rs) (apply max rs)))
(let ((r (first rs)))
(paint-cells out
(list (list r (apply min cs)) (list r (apply max cs)))
8))]
;; Recolor the two vertical extremes; bent red components fall through unchanged.
[(and (>= (length cells) 2) (= (apply min cs) (apply max cs)))
(let ((c (first cs)))
(paint-cells out
(list (list (apply min rs) c) (list (apply max rs) c))
8))]
[else out]))))Provenance
- Generator
- generators/1b54d2fb6f09/generator.py
- Notes and decisions
- generators/1b54d2fb6f09/notes.md
- Review label
- reviewed_safe
- Generator SHA-256
- fca80e3f28617ab4754ea5eafcb20b17b555408b3199040e2faf89837b070f0f
- Rule hash
- c2a92b447e5a
- Sources
- bank:f4facb1306bd
- Lesson seeds
- 20261108, 20261109, 20261110, 20261111, 20261112
- Reproduce lesson 1
arcpuzzles generate 1b54d2fb6f09 --count 1 --seed 20261108 --test 1