← cf5ccd73cfe5 · cf6ef609da0d →

cf6d343a2d09

Recolor every four-connected orange-7 component touching both the top and left borders to cyan 8; preserve all other cells.

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))
             (touch-top (any? (lambda (p) (= (fst p) 0)) cells))
             (touch-left (any? (lambda (p) (= (snd p) 0)) cells)))
        (if (and touch-top touch-left)
          (recolor-cells out cells 8)
          out))))
    g (objects g 0)))

Provenance

Generator
generators/cf6d343a2d09/generator.py
Notes and decisions
generators/cf6d343a2d09/notes.md
Review label
reviewed_safe
Generator SHA-256
03d588d7d2ffbda93585a44309f2ea19a2ffafc75ac4a18ce60782dca7113093
Rule hash
ae8814a935b3
Sources
bank:8edfaf6db623
Lesson seeds
20261108, 20261109, 20261110, 20261111, 20261112
Reproduce lesson 1
arcpuzzles generate cf6d343a2d09 --count 1 --seed 20261108 --test 1