← c5a80b7a3acc · c5dd8036311b →

c5c5f3f84f12

The blue(1) corner encodes 0/1/2/3 clockwise quarter-turns for the red(2) object. Ignore the differently coloured corner singleton, rotate and normalize the red object, crop it, and recolour it cyan(8).

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 (rot90 cells)
      (let* ((norm (normalize-cells cells))
             (rmax (max-list (map first norm))))
        (normalize-cells (map (lambda (p) (list (second p) (- rmax (first p)))) norm))))
    (define (rot cells k)
      (cond [(= k 0) (normalize-cells cells)]
            [(= k 1) (rot90 cells)]
            [(= k 2) (rot90 (rot90 cells))]
            [else (rot90 (rot90 (rot90 cells)))]))
    (define (crop-cells cells color)
      (let* ((norm (normalize-cells cells))
             (bb (bbox-of-cells norm)))
        (grid-from-fn (+ 1 (third bb)) (+ 1 (fourth bb))
          (lambda (r c) (if (member? (list r c) norm) color 0)))))
    (let* ((ctrl (first (find-color g 1)))
           (code (cond [(and (= (first ctrl) 0) (= (second ctrl) 0)) 0]
                       [(and (= (first ctrl) 0) (= (second ctrl) (- w 1))) 1]
                       [(and (= (first ctrl) (- h 1)) (= (second ctrl) (- w 1))) 2]
                       [else 3]))
           (obj (first (filter (lambda (o) (= (obj-color o) 2)) (objects g 0))))
           (cells (rot (obj-cells obj) code)))
      (crop-cells cells 8))))

Provenance

Generator
generators/c5c5f3f84f12/generator.py
Notes and decisions
generators/c5c5f3f84f12/notes.md
Review label
reviewed_safe
Generator SHA-256
c4200c63da1349b84e8233479b142004d2422c5f527204e53b30d01b9940940f
Rule hash
148139dec0ec
Sources
bank:53ccebf2a36f
Lesson seeds
20261108, 20261109, 20261110, 20261111, 20261112
Reproduce lesson 1
arcpuzzles generate c5c5f3f84f12 --count 1 --seed 20261108 --test 1