← 0f5fbe0de38e · 0f801939eff6 →

0f7d80015d9d

On a color-7 grid, find the solid color-5 rectangle anchored to the bottom. Erase the lone color-2 marker, recolor the lone color-8 marker to 2, and stamp a new 8 on the rectangle's bottom row immediately outside the horizontal side opposite the original 2. The midpoint column counts as the right side.

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! (lambda (g)
  (let* ((h (rows g)) (w (cols g))
         ;; Positions of every gray(5) cell
         (grays (find-color g 5))
         ;; Bottom edge of the grays bbox
         (gr1 (max-list (map fst grays)))
         ;; Left edge of the grays bbox
         (gc0 (min-list (map snd grays))) (gc1 (max-list (map snd grays)))
         ;; Position of the first red(2) cell
         (red-cell (first (find-color g 2)))
         ;; Position of the first cyan(8) cell
         (cyan-cell (first (find-color g 8)))
         (mid-c (quotient (+ gc0 gc1) 2))
         (red-left (< (snd red-cell) mid-c))
         (new-cyan-c (if red-left (+ gc1 1) (- gc0 1))))
    (set-cell (set-cell (set-cell g
      (fst red-cell) (snd red-cell) 7)
      (fst cyan-cell) (snd cyan-cell) 2)
      gr1 new-cyan-c 8))))

Provenance

Generator
generators/0f7d80015d9d/generator.py
Notes and decisions
generators/0f7d80015d9d/notes.md
Review label
reviewed_safe
Generator SHA-256
ac0ca88dd193c5b1e26e87f3397253158d4376f6289b51da270b40027c75ff65
Rule hash
9744dc525afc
Sources
training
Lesson seeds
20261108, 20261109, 20261110, 20261111, 20261112
Reproduce lesson 1
arcpuzzles generate 0f7d80015d9d --count 1 --seed 20261108 --test 1