← 44756e464c2d · 44d20451ce17 →

448aa5bd80ad

A black 7..14 by 7..14 grid has 1..3 maroon (9) selector cells in row 0, a blank separator row, and one 4-connected monochrome polyomino of 4..8 cells below it. Count the 9s, erase them, crop the polyomino, then apply 1=rotate clockwise, 2=rotate 180 degrees, 3=transpose. Object shape, position, size, selector positions, canvas dimensions, and color family vary independently; every selected transform changes the crop.

countingcropmarker_keyrotation

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* ((count9 (count-where (lambda (c) (= (at g 0 c) 9)) (range 0 (cols g))))
         (clean (for/fold ([out g]) ([c (in-range (cols g))])
                  (if (= (at g 0 c) 9) (set-cell out 0 c 0) out)))
         (obj (crop-to-content clean 0)))
    (cond [(= count9 1) (rotate-cw obj)]
          [(= count9 2) (rotate-180 obj)]
          [else (transpose obj)])))

Provenance

Generator
generators/448aa5bd80ad/generator.py
Notes and decisions
generators/448aa5bd80ad/notes.md
Review label
reviewed_safe
Generator SHA-256
a15132ca80ae89b3ed2f0d017b7ffc60f3b8ca517f71d049716eb46108b413b2
Rule hash
b0b8c9f3ea53
Sources
bank:d7b013a675b4
Lesson seeds
20261108, 20261109, 20261110, 20261111, 20261112
Reproduce lesson 1
arcpuzzles generate 448aa5bd80ad --count 1 --seed 20261108 --test 1