← 4d3c5600ffbd · 4dd02f124024 →
4d5bb3c0250b
Equal square blocks separated by full same-color rows/columns; crop the unique block whose nonzero cells all share one color.
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* ((rseps (map fst (full-rows g))) (cseps (map fst (full-cols g)))) (define (spans seps limit) (let loop ((xs seps) (start 0) (acc (list))) (if (empty? xs) (reverse (if (< start limit) (cons (list start (- limit 1)) acc) acc)) (let ((sep (fst xs))) (loop (cdr xs) (+ sep 1) (if (< start sep) (cons (list start (- sep 1)) acc) acc)))))) (define rbands (spans rseps h)) (define cbands (spans cseps w)) (define (block-cells block) (let* ((rb (fst block)) (cb (snd block)) (r0 (fst rb)) (r1 (snd rb)) (c0 (fst cb)) (c1 (snd cb))) (flatmap (lambda (r) (map (lambda (c) (list r c)) (range c0 (+ c1 1)))) (range r0 (+ r1 1))))) (define (pure-block? block) (let ((vals (filter (lambda (v) (!= v 0)) (map (lambda (p) (at g (fst p) (snd p))) (block-cells block))))) (and (not (empty? vals)) (= (length (unique vals)) 1)))) (let* ((blocks (flatmap (lambda (rb) (map (lambda (cb) (list rb cb)) cbands)) rbands)) (best (fst (filter pure-block? blocks))) (rb (fst best)) (cb (snd best))) (subgrid g (fst rb) (fst cb) (snd rb) (snd cb)))))))
Provenance
- Generator
- generators/4d5bb3c0250b/generator.py
- Notes and decisions
- generators/4d5bb3c0250b/notes.md
- Review label
- reviewed_safe
- Generator SHA-256
- 268443a7bf130a55f9d1d6aca5767e0e820edc8bcef4de01d490867bd5be7c54
- Rule hash
- 0bc50653fe24
- Sources
- training
- Lesson seeds
- 20261108, 20261109, 20261110, 20261111, 20261112
- Reproduce lesson 1
arcpuzzles generate 4d5bb3c0250b --count 1 --seed 20261108 --test 1