← 1bfb2ef9ca71 · 1c2f874f3e82 →
1c1ef857c9e2
Count the complete rows and columns painted in the separator colour. Return a (row-count + 1) by (column-count + 1) grid filled with the strict-majority background colour.
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* ((bg (mode g 0))
(sep-rows (filter (lambda (r)
(all? (lambda (c) (!= (at g r c) bg)) (range 0 w)))
(range 0 h)))
(sep-color (at g (first sep-rows) 0))
(s-rows (filter (lambda (r)
(all? (lambda (c) (= (at g r c) sep-color))
(range 0 w)))
(range 0 h)))
(s-cols (filter (lambda (c)
(all? (lambda (r) (= (at g r c) sep-color))
(range 0 h)))
(range 0 w)))
(n-row-secs (+ 1 (length s-rows)))
(n-col-secs (+ 1 (length s-cols))))
(build-grid n-row-secs n-col-secs (r c) bg)))))Provenance
- Generator
- generators/1c1ef857c9e2/generator.py
- Notes and decisions
- generators/1c1ef857c9e2/notes.md
- Review label
- reviewed_safe
- Generator SHA-256
- df45898722e7ee3c7a7460303cf734706ad36441e3ae10f8c6f5c80593b8ed9e
- Rule hash
- 13aa128bacd8
- Sources
- training
- Lesson seeds
- 20261108, 20261109, 20261110, 20261111, 20261112
- Reproduce lesson 1
arcpuzzles generate 1c1ef857c9e2 --count 1 --seed 20261108 --test 1