← 44d20451ce17 · 4512012999bb →

44e865b6a43e

An orange 7..12 by (2n+1) grid contains 3..5 distinct-colored, one-cell-wide bars in alternating columns, all bottom-aligned. Heights may repeat but are not all equal. Rotate colors right and heights left.

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)))
           (let* ((bar-cols (filter (lambda (c)
                                      (for/or ((r (range 0 h))) (!= (at g r c) 7)))
                                    (range 0 w)))
                  (n (length bar-cols))
                  (bar-info (map (lambda (c)
                                   (let* ((top (find-first (lambda (r)
                                                             (!= (at g r c) 7))
                                                           (range 0 h)))
                                          (color (at g top c))
                                          (ht (- h top)))
                                     (list c color ht)))
                                 bar-cols))
                  (colors (map second bar-info))
                  (heights (map third bar-info))
                  (new-colors (append (list (last colors))
                                      (reverse (cdr (reverse colors)))))
                  (new-heights (append (cdr heights) (list (first heights)))))
             (reduce (lambda (acc i)
                       (let* ((c (nth bar-cols i))
                              (ht (nth new-heights i))
                              (col (nth new-colors i)))
                         (reduce (lambda (g2 r) (set-cell g2 r c col))
                                 acc
                                 (range (- h ht) h))))
                     (empty-grid h w 7)
                     (range 0 n))))))

Provenance

Generator
generators/44e865b6a43e/generator.py
Notes and decisions
generators/44e865b6a43e/notes.md
Review label
reviewed_safe
Generator SHA-256
81e85f5ea98487f80ee96ad6c2ea66501a55ad9ffeb0dca16ea4066646c25545
Rule hash
de38c98a1856
Sources
training
Lesson seeds
20261108, 20261109, 20261110, 20261111, 20261112
Reproduce lesson 1
arcpuzzles generate 44e865b6a43e --count 1 --seed 20261108 --test 1