← 59ccf6f5cc65 · 59d647aebebb →
59d146376904
Split an even grid into four equal quadrants. In every quadrant, choose the uniquely most frequent non-background color (background 0 is ignored), then place the four selected colors in a 2x2 spatial summary.
parametric familycolor frequencyquadrant analysissize-changing output
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 (t10b-majority-nonzero vals) (let* ((colors (remove-duplicates (filter (lambda (v) (not (= v 0))) vals))) (ranked (sort colors (lambda (a b) (let ((ca (count-where (lambda (v) (= v a)) vals)) (cb (count-where (lambda (v) (= v b)) vals))) (or (> ca cb) (and (= ca cb) (> a b)))))))) (if (empty? ranked) 0 (first ranked)))) (let* ((hm (quotient (rows g) 2)) (wm (quotient (cols g) 2)) (q1 (subgrid g 0 0 (- hm 1) (- wm 1))) (q2 (subgrid g 0 wm (- hm 1) (- (cols g) 1))) (q3 (subgrid g hm 0 (- (rows g) 1) (- wm 1))) (q4 (subgrid g hm wm (- (rows g) 1) (- (cols g) 1)))) (list (list (t10b-majority-nonzero (apply append q1)) (t10b-majority-nonzero (apply append q2))) (list (t10b-majority-nonzero (apply append q3)) (t10b-majority-nonzero (apply append q4)))))))
Provenance
- Generator
- generators/59d146376904/generator.py
- Notes and decisions
- generators/59d146376904/notes.md
- Review label
- reviewed_safe
- Generator SHA-256
- a23916893faf51c4191d49f0cab9b55a979d247b6d427a601a7860cdd8d343cb
- Rule hash
- f575832a27ff
- Sources
- bank:ad4abc25f505
- Lesson seeds
- 20261108, 20261109, 20261110, 20261111, 20261112
- Reproduce lesson 1
arcpuzzles generate 59d146376904 --count 1 --seed 20261108 --test 1