← 144c5d002191 · 148acacd84d9 →

147c2b92e5c1

Read the unique code in row 0: 1=identity, 2=rotate 90 degrees clockwise, 3=rotate 180 degrees, 4=rotate 90 degrees counter-clockwise, 5=flip left-right, and 6=flip up-down. Among the three separated monochrome objects below the blank row 1, select the unique object with exactly one enclosed hole, crop it tightly, apply the coded transform, and scale every cell to a 2x2 block. Discard the two solid distractors. The curriculum cycles all six codes, spans the declared size ranges, retains regular exact canonical-profile anchors, and uses transform-visible asymmetric holed objects.

hole countingobject selectionrotation and scaling

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 (nonzero-cells grid) (filter (lambda (p) (not (= (at grid (first p) (second p)) 0))) (grid-positions grid))) (define (crop-nonzero grid) (let ((cells (nonzero-cells grid))) (if (empty? cells) (list (list 0)) (let* ((bb (bbox-of-cells cells))) (subgrid grid (first bb) (second bb) (third bb) (fourth bb)))))) (define (f14-crop-cells grid cells) (let ((bb (bbox-of-cells cells))) (subgrid grid (first bb) (second bb) (third bb) (fourth bb)))) (define (f14b-transform grid code) (cond ((= code 1) grid) ((= code 2) (rotate-cw grid)) ((= code 3) (rotate-180 grid)) ((= code 4) (rotate-ccw grid)) ((= code 5) (flip-lr grid)) ((= code 6) (flip-ud grid)) (else grid))) (define (f14b-binary-crop grid) (crop-nonzero (grid-from-fn (rows grid) (cols grid) (lambda (r c) (if (= (at grid r c) 0) 0 1))))) (define (f14b-hole-count grid) (let* ((binary (f14b-binary-crop grid)) (regions (find-0-regions binary 0))) (length (filter (lambda (region) (not (any? (lambda (p) (or (= (first p) 0) (= (first p) (- (rows binary) 1)) (= (second p) 0) (= (second p) (- (cols binary) 1)))) region))) regions)))) (define (f14b-scale2 grid) (upscale grid 2)) (let* ((code (first (filter (lambda (v) (not (= v 0))) (first g)))) (base (subgrid g 1 0 (- (rows g) 1) (- (cols g) 1))) (selected (first (filter (lambda (obj) (= (f14b-hole-count (f14-crop-cells base (obj-cells obj))) 1)) (objects base 0))))) (f14b-scale2 (f14b-transform (f14-crop-cells base (obj-cells selected)) code)))))

Provenance

Generator
generators/147c2b92e5c1/generator.py
Notes and decisions
generators/147c2b92e5c1/notes.md
Review label
reviewed_safe
Generator SHA-256
658485dcaa05e19b78869e77afa0da15170000fbb0aa09a65a5f13fad82607a0
Rule hash
93c771e66aca
Sources
bank:d82cc3a28c3b
Lesson seeds
20261108, 20261109, 20261110, 20261111, 20261112
Reproduce lesson 1
arcpuzzles generate 147c2b92e5c1 --count 1 --seed 20261108 --test 1