← fc999420d3aa · fcac68386147 →

fcabbbbdfc11

0-bg grid (h 5..14, w 12..22): row 0 is a legend listing 2..5 distinct non-zero colors by default (1..5 including the one_color edge) at scattered columns (left-to-right = pack order, always different from the below reading order when >=2 colors); row 1 is empty; rows 2..h-1 hold one 4-connected polyomino piece (1..5 cells canonical, up to 6 on generalized draws; bbox <= 3x3) per legend color, plus optional duplicate-color pieces (rule selects the LAST per color) and non-legend distractor pieces (rule ignores them). Output: the last piece per legend color cropped to its bbox and packed horizontally in legend order with 1-column zero gaps.

component extractionhorizontal packinglegend reading

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).

Reference rule (Racket)

(rule!
  (let ((order (filter (lambda (v) (not (= v 0))) (row g 0))))
    (define below (subgrid g 1 0 (- (rows g) 1) (- (cols g) 1)))
    (define objs (objects below 0))
    (define (piece color)
      (let ((obj (first (reverse (filter (lambda (o) (= (obj-color o) color)) objs)))))
        (subgrid below (obj-r1 obj) (obj-c1 obj) (obj-r2 obj) (obj-c2 obj))))
    (define pieces (map piece order))
    (define out-h (apply max (map rows pieces)))
    (define out-w (+ (apply + (map cols pieces)) (max 0 (- (length pieces) 1))))
    (let pack ([remaining pieces] [left 0] [out (empty-grid out-h out-w 0)])
      (if (empty? remaining)
          out
          (let* ((p (first remaining))
                 (next
                  (for*/fold ([acc out])
                             ([r (in-range (rows p))]
                              [c (in-range (cols p))])
                    (let ((v (at p r c)))
                      (if (not (= v 0)) (set-cell acc r (+ left c) v) acc)))))
            (pack (rest remaining) (+ left (cols p) 1) next))))))

Provenance

Generator
generators/fcabbbbdfc11/generator.py
Notes and decisions
generators/fcabbbbdfc11/notes.md
Review label
reviewed_safe
Generator SHA-256
0c0417d71496e0ac4965fe524d0bfb2e87033d43205a79f6d937ad693cff715a
Rule hash
e6db69a05de7
Sources
bank:64addfdad75c
Lesson seeds
20261108, 20261109, 20261110, 20261111, 20261112
Reproduce lesson 1
arcpuzzles generate fcabbbbdfc11 --count 1 --seed 20261108 --test 1