← 23c3ab5fa55f · 241567a35764 →
23ef3502f576
Count the one-row header markers, select that indexed candidate panel, and recolor its occupied cells cyan (8).
parametric familyrow-wise panel splitting, tiny header decoding, indexed selection
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 (render-same-size cells h w (color 8)) (paint-cells (empty-grid h w 0) (filter (lambda (p) (in-bounds? (first p) (second p) h w)) cells) color)) (define (panel-occ panel) (sort (filter (lambda (p) (let ((v (at panel (first p) (second p)))) (and (not (= v 0)) (not (= v 9))))) (grid-positions panel)) cell<)) (define (recolor-panel panel (color 8)) (render-same-size (panel-occ panel) (rows panel) (cols panel) color)) (define (split-rows-9 grid) (let loop ((r 0) (start 0) (acc (list))) (cond ((>= r (rows grid)) (reverse (if (< start (rows grid)) (cons (subgrid grid start 0 (- (rows grid) 1) (- (cols grid) 1)) acc) acc))) ((all? (lambda (c) (= (at grid r c) 9)) (range 0 (cols grid))) (let scan ((rr r)) (if (and (< rr (rows grid)) (all? (lambda (c) (= (at grid rr c) 9)) (range 0 (cols grid)))) (scan (+ rr 1)) (loop rr rr (if (< start r) (cons (subgrid grid start 0 (- r 1) (- (cols grid) 1)) acc) acc))))) (else (loop (+ r 1) start acc))))) (let* ((panels (split-rows-9 g)) (header (first panels)) (n (length (panel-occ header))) (chosen (list-ref (rest panels) (- n 1)))) (recolor-panel chosen 8))))
Provenance
- Generator
- generators/23ef3502f576/generator.py
- Notes and decisions
- generators/23ef3502f576/notes.md
- Review label
- reviewed_safe
- Generator SHA-256
- c9ba00b01e87cd5808a20b7e6afc4f4cb180435b45020cb2608d9544d3c54062
- Rule hash
- 86a806e40780
- Sources
- bank:0938460c498b
- Lesson seeds
- 20261108, 20261109, 20261110, 20261111, 20261112
- Reproduce lesson 1
arcpuzzles generate 23ef3502f576 --count 1 --seed 20261108 --test 1