← 113d9bb402d3 · 1198580cc354 →
1189131c32a4
Rank every non-7 color by descending frequency, using descending numeric color order for ties, then paint concentric square rings.
parametric family
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* ((all-vals (unique (flatmap (lambda (r) (map (lambda (c) (at g r c)) (range 0 w))) (range 0 h)))) (colors (filter (lambda (c) (!= c 7)) all-vals)) (sorted-c (reverse (sort-by colors (lambda (c) (length (find-color g c)))))) (n (length sorted-c)) (sz (- (* 2 n) 1)) (center (- n 1))) (build-grid sz sz (r c) (let* ((ar (if (> r center) (- r center) (- center r))) (ac (if (> c center) (- c center) (- center c))) (dist (if (> ar ac) ar ac))) (nth sorted-c (- (- n 1) dist))))))))
Provenance
- Generator
- generators/1189131c32a4/generator.py
- Notes and decisions
- generators/1189131c32a4/notes.md
- Review label
- reviewed_safe
- Generator SHA-256
- 563d9029027d65a06a2c7c01716171eb39685c7284cdb16d6024f6181cb74c8d
- Rule hash
- cb24e3652642
- Sources
- training
- Lesson seeds
- 20261108, 20261109, 20261110, 20261111, 20261112
- Reproduce lesson 1
arcpuzzles generate 1189131c32a4 --count 1 --seed 20261108 --test 1