← b2387c876b95 · b28619e32f6f →

b25434a1b56e

Split an even grid into top-left, top-right, bottom-left, and bottom-right quadrants. For each quadrant output its most frequent non-zero color, or 0 when the quadrant is empty. Ordinary lessons mix single-color, empty, and multi-color quadrants, including count winners that are neither the first nor the numerically largest visible color.

abstractionquadrant partitioningsize-changing summary

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 (e11b-majority vals) (let ((colors (remove-duplicates (filter (lambda (v) (not (= v 0))) vals)))) (if (empty? colors) 0 (first (sort colors (lambda (a b) (let ((ca (length (filter (lambda (v) (= v a)) vals))) (cb (length (filter (lambda (v) (= v b)) vals)))) (or (> ca cb) (and (= ca cb) (> a b)))))))))) (let* ((hm (quotient (rows g) 2)) (wm (quotient (cols g) 2)) (q1 (for*/list ((r (in-range 0 hm)) (c (in-range 0 wm))) (at g r c))) (q2 (for*/list ((r (in-range 0 hm)) (c (in-range wm (cols g)))) (at g r c))) (q3 (for*/list ((r (in-range hm (rows g))) (c (in-range 0 wm))) (at g r c))) (q4 (for*/list ((r (in-range hm (rows g))) (c (in-range wm (cols g)))) (at g r c)))) (list (list (e11b-majority q1) (e11b-majority q2)) (list (e11b-majority q3) (e11b-majority q4))))))

Provenance

Generator
generators/b25434a1b56e/generator.py
Notes and decisions
generators/b25434a1b56e/notes.md
Review label
reviewed_safe
Generator SHA-256
f91c63f86ff0257eca8c41c87c7f65cd9705ea23292c493b80bee056772a7db6
Rule hash
d994ac093631
Sources
bank:db2a1cce4e4e
Lesson seeds
20261108, 20261109, 20261110, 20261111, 20261112
Reproduce lesson 1
arcpuzzles generate b25434a1b56e --count 1 --seed 20261108 --test 1