← 6c40e60caa4a · 6c68e1b008a5 →

6c5bf76aa982

Recolor only orange components touching exactly one border; preserve interior/corner orange components and non-orange distractors.

parametric family

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!
  (reduce (lambda (out obj)
    (if (not (= (obj-color obj) 7)) out
      (let* ((cells (obj-cells obj))
             (top (any? (lambda (p) (= (fst p) 0)) cells))
             (bottom (any? (lambda (p) (= (fst p) (- h 1))) cells))
             (left (any? (lambda (p) (= (snd p) 0)) cells))
             (right (any? (lambda (p) (= (snd p) (- w 1))) cells))
             (touch-count (+ (if top 1 0) (if bottom 1 0) (if left 1 0) (if right 1 0))))
        (if (= touch-count 1)
          (recolor-cells out cells 3)
          out))))
    g (objects g 0)))

Provenance

Generator
generators/6c5bf76aa982/generator.py
Notes and decisions
generators/6c5bf76aa982/notes.md
Review label
reviewed_safe
Generator SHA-256
a49ac1794d9a09d3efa62f5730e40f9933e0abb8d2298f256b37d472504058ca
Rule hash
7bcfd291ec7c
Sources
bank:385e738e9e70
Lesson seeds
20261108, 20261109, 20261110, 20261111, 20261112
Reproduce lesson 1
arcpuzzles generate 6c5bf76aa982 --count 1 --seed 20261108 --test 1