← 6ccc3318a707 · 6d095613d305 →

6d06c5b96c19

Remove column 0, read the red marker's zero-based row index, and cyclically rotate the remaining rows downward by that many rows.

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 (g)
  (let* ((h (rows g))
         (w (cols g))
         ;; Column 0 is the instruction strip. Its red row is the amount
         ;; by which the payload rows rotate downward.
         (red-row (find (lambda (r) (= (at g r 0) 2)) (range 0 h)))
         (down-shift (remainder (- h red-row) h)))
    ;; Remove the instruction strip and read output row r from payload row
    ;; r - red-row (mod h), which is exactly a downward cyclic rotation.
    (build-grid h (- w 1) (r c)
      (at g (remainder (+ r down-shift) h) (+ c 1))))))

Provenance

Generator
generators/6d06c5b96c19/generator.py
Notes and decisions
generators/6d06c5b96c19/notes.md
Review label
reviewed_safe
Generator SHA-256
691a8c0a81cfc305054e4b0fd6f71793d8983facceca0fcc5d08416e4185882c
Rule hash
9b7b9cf11c40
Sources
training
Lesson seeds
20261108, 20261109, 20261110, 20261111, 20261112
Reproduce lesson 1
arcpuzzles generate 6d06c5b96c19 --count 1 --seed 20261108 --test 1