← 1d23d72f3b43 · 1d2c53122095 →
1d26c382ab68
A 0-background grid has one full color-9 separator row. Above it is one connected color-1 template. Below it are exactly three separated, single-color candidate objects with the same cell count as the template. Exactly one candidate is the template rotated by 0/90/180/270 degrees; the other two include a reflected same-size counterexample and another near miss. Recolor only the rotational match to color 2.
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! (lambda (grid)
(let* ((height (rows grid))
(width (cols grid))
(separator-row
(first
(first
(filter (lambda (row-info) (= (second row-info) 9))
(full-rows grid)))))
(template-grid
(crop-to-content
(keep-only
(subgrid grid 0 0 (- separator-row 1) (- width 1))
1)))
(template-shape
(grid-from-fn (rows template-grid) (cols template-grid)
(lambda (row col)
(if (= (cell-at template-grid row col) 0) 0 1))))
(lower-grid
(subgrid grid (+ separator-row 1) 0 (- height 1) (- width 1)))
(candidate-objs (objects lower-grid 0)))
(define (normalize-shape shape-grid)
(grid-from-fn (rows shape-grid) (cols shape-grid)
(lambda (row col)
(if (= (cell-at shape-grid row col) 0) 0 1))))
(define (same-shape? shape-a shape-b)
(and (= (rows shape-a) (rows shape-b))
(= (cols shape-a) (cols shape-b))
(= (length (grid-colors (grid-xor shape-a shape-b 0))) 1)
(= (first (grid-colors (grid-xor shape-a shape-b 0))) 0)))
(define (matches-template? obj)
(let* ((shape-grid
(normalize-shape
(crop-to-content
(subgrid lower-grid
(obj-r1 obj) (obj-c1 obj)
(obj-r2 obj) (obj-c2 obj))))))
(or (same-shape? shape-grid template-shape)
(same-shape? (rotate-cw shape-grid) template-shape)
(same-shape? (rotate-180 shape-grid) template-shape)
(same-shape? (rotate-ccw shape-grid) template-shape))))
(reduce (lambda (acc obj)
(if (matches-template? obj)
(recolor-cells acc
(map (lambda (position)
(list (+ separator-row 1 (fst position))
(snd position)))
(obj-cells obj))
2)
acc))
grid
candidate-objs))))Provenance
- Generator
- generators/1d26c382ab68/generator.py
- Notes and decisions
- generators/1d26c382ab68/notes.md
- Review label
- reviewed_safe
- Generator SHA-256
- 7af83faf43c07849c2a1900002e2258846d052d4d9899a5d066658d32f538ac0
- Rule hash
- e4dd26fbc01b
- Sources
- custom
- Lesson seeds
- 20261108, 20261109, 20261110, 20261111, 20261112
- Reproduce lesson 1
arcpuzzles generate 1d26c382ab68 --count 1 --seed 20261108 --test 1