← 45922a9666b2 · 46b45dd2aff8 →

46580cfcca75

A 6..14 by 7..16 zero-background grid contains one or two separated, distinct-colour filled rectangles. At least one rectangle has height and width at least 3, so the rule visibly erases an interior. Some scheduled examples also contain a 2-cell-thick rectangle. On a blank output canvas, replace every non-zero same-colour object by the perimeter of its tight bounding box in the same colour.

rectanglessame_size_transform

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 ((dummy 0))
    (define (border-cells obj)
      (append (for/list ([r (in-range (obj-r1 obj) (+ (obj-r2 obj) 1))]) (list r (obj-c1 obj)))
              (for/list ([r (in-range (obj-r1 obj) (+ (obj-r2 obj) 1))]) (list r (obj-c2 obj)))
              (for/list ([c (in-range (+ (obj-c1 obj) 1) (obj-c2 obj))]) (list (obj-r1 obj) c))
              (for/list ([c (in-range (+ (obj-c1 obj) 1) (obj-c2 obj))]) (list (obj-r2 obj) c))))
    (for/fold ([out (empty-grid (rows g) (cols g) 0)]) ([obj (in-list (objects g 0))])
      (paint-cells out (border-cells obj) (obj-color obj)))))

Provenance

Generator
generators/46580cfcca75/generator.py
Notes and decisions
generators/46580cfcca75/notes.md
Review label
reviewed_safe
Generator SHA-256
6580efc42ec00d017ce240022a738d4fa0520ab3f79784bd9b13abc9465d4185
Rule hash
001f318153f4
Sources
bank:276b5e4c56a1
Lesson seeds
20261108, 20261109, 20261110, 20261111, 20261112
Reproduce lesson 1
arcpuzzles generate 46580cfcca75 --count 1 --seed 20261108 --test 1