← 72c77addd109 · 72f0b65569a4 →
72dbce4d594b
Three disconnected blue components have distinct sizes. Red marker count selects the one-based size rank; green marker count selects identity, 90° clockwise, 180°, or left-right mirror. Stamp the transformed normalized component in orange at the unique cyan target on a blank grid.
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!
;; Objects whose color is blue(1)
(let* ((comps (filter (lambda (o) (= (obj-color o) 1)) (objects g 0)))
;; Count of red(2) cells
(k (length (find-color g 2)))
;; Count of green(3) cells
(t (length (find-color g 3)))
;; Positions of every cyan(8) cell
(targets (find-color g 8)))
(define (rot90 cells)
(normalize-cells (map (lambda (p)
(let ((h (+ 1 (apply max (map first cells)))))
(list (second p) (- h 1 (first p)))))
cells)))
(define (rot180 cells) (rot90 (rot90 cells)))
(define (flip-h cells)
(let ((w (+ 1 (apply max (map second cells)))))
(normalize-cells (map (lambda (p) (list (first p) (- w 1 (second p)))) cells))))
(if (and (not (empty? comps)) (not (empty? targets)) (>= k 1) (<= k (length comps)) (>= t 1) (<= t 4))
;; Position of the first cyan(8) cell
(let* ((target (first targets))
(obj (list-ref (sort comps (lambda (a b) (< (obj-size a) (obj-size b)))) (- k 1)))
;; Same shape, translated so its bbox starts at (0,0)
(shape0 (normalize-cells (obj-cells obj)))
(shape (cond [(= t 1) shape0] [(= t 2) (rot90 shape0)] [(= t 3) (rot180 shape0)] [else (flip-h shape0)]))
(placed (map (lambda (p) (list (+ (first target) (first p)) (+ (second target) (second p)))) shape)))
(paint-cells (empty-grid (rows g) (cols g) 0) placed 7))
(empty-grid (rows g) (cols g) 0))))Provenance
- Generator
- generators/72dbce4d594b/generator.py
- Notes and decisions
- generators/72dbce4d594b/notes.md
- Review label
- reviewed_safe
- Generator SHA-256
- a6dba3cfd52647f610cd11abab494e063f8d766dc054f70c0e9ba90ee7e67880
- Rule hash
- d291f7b88b55
- Sources
- bank:3b7f019624a4
- Lesson seeds
- 20261108, 20261109, 20261110, 20261111, 20261112
- Reproduce lesson 1
arcpuzzles generate 72dbce4d594b --count 1 --seed 20261108 --test 1