← 5dddd8d6711e · 5df55418cdc1 →

5de3293e1bda

Crop and render the normalized overlap of the blue and red shapes in cyan.

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* ((s1 (normalize-cells (find-color g 1)))
           (s2 (normalize-cells (find-color g 2)))
           (inter (filter (lambda (p) (member? p s2)) s1)))
      (if (empty? inter)
          '((0))
          (let* ((bb (bbox-of-cells inter))
                 (h (+ 1 (- (third bb) (first bb))))
                 (w (+ 1 (- (fourth bb) (second bb)))))
            (grid-from-fn h w (lambda (r c) (if (member? (list (+ r (first bb)) (+ c (second bb))) inter) 8 0)))))))

Provenance

Generator
generators/5de3293e1bda/generator.py
Notes and decisions
generators/5de3293e1bda/notes.md
Review label
reviewed_safe
Generator SHA-256
4c5719dd689c89f380c366fdf707ccc5dffed604d5a426c137fc43d8512d4dc6
Rule hash
7cd0ccb1b858
Sources
bank:f4facb1306bd
Lesson seeds
20261108, 20261109, 20261110, 20261111, 20261112
Reproduce lesson 1
arcpuzzles generate 5de3293e1bda --count 1 --seed 20261108 --test 1