← 250671db7aa1 · 250a48232c34 →
250925d67253
A fixed 19x19 zero lattice separates nine 5x5 two-color panels. In each source panel, the arithmetic centroid of all non-background markers is thresholded into one of nine destination buckets. The nine buckets form a bijection, and each complete 5x5 source panel is copied to its encoded destination. Generated mappings are independent non-cyclic permutations; asymmetric motifs distinguish the true centroid from common proxies.
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))
(first-row-vals (filter (lambda (v) (!= v 0))
(map (lambda (c) (at g 1 c)) (range 1 18))))
(freq (map (lambda (v)
(cons v
(length (filter (lambda (x) (= x v)) first-row-vals))))
(unique first-row-vals)))
(bg (fst (first (sort-by freq (lambda (p) (* -1 (snd p))))))))
(let* ((marks-in-cell (lambda (br bc)
(let ((r0 (+ 1 (* br 6)))
(c0 (+ 1 (* bc 6))))
(filter (lambda (p)
(!= bg
(at g (+ r0 (fst p)) (+ c0 (snd p)))))
(reduce append
(list)
(map (lambda (r)
(map (lambda (c) (cons r c))
(range 0 5)))
(range 0 5)))))))
(target-pos (lambda (br bc)
(let* ((marks (marks-in-cell br bc))
(n (length marks))
(sr (reduce + 0 (map fst marks)))
(sc (reduce + 0 (map snd marks)))
(cr (/ sr (+ 0.0 n)))
(cc (/ sc (+ 0.0 n)))
(tR (if (< cr 1.5) 0 (if (<= cr 2.5) 1 2)))
(tC (if (< cc 1.5) 0 (if (<= cc 2.5) 1 2))))
(cons tR tC))))
(find-source (lambda (tbr tbc)
(first (filter (lambda (sp)
(let ((tgt (target-pos (fst sp)
(snd sp))))
(and
(= (fst tgt) tbr)
(= (snd tgt) tbc))))
(reduce append
(list)
(map (lambda (br)
(map (lambda (bc)
(cons br bc))
(range 0 3)))
(range 0 3))))))))
(grid-from-fn h
w
(lambda (r c)
(if (or
(zero? r)
(= r 6)
(= r 12)
(= r 18)
(zero? c)
(= c 6)
(= c 12)
(= c 18))
0
(let* ((tbr (if (< r 6) 0 (if (< r 12) 1 2)))
(tbc (if (< c 6) 0 (if (< c 12) 1 2)))
(r0 (+ 1 (* tbr 6)))
(c0 (+ 1 (* tbc 6)))
(lr (- r r0))
(lc (- c c0))
(src (find-source tbr tbc))
(sbr (fst src))
(sbc (snd src))
(sr0 (+ 1 (* sbr 6)))
(sc0 (+ 1 (* sbc 6))))
(at g (+ sr0 lr) (+ sc0 lc))))))))))Provenance
- Generator
- generators/250925d67253/generator.py
- Notes and decisions
- generators/250925d67253/notes.md
- Review label
- reviewed_safe
- Generator SHA-256
- bfc03f21b61f9e1f031a246e7c391a6d28cac4d3871c018f075efed8cb151c34
- Rule hash
- 9f1390aa0494
- Sources
- augmented, training
- Lesson seeds
- 20261108, 20261109, 20261110, 20261111, 20261112
- Reproduce lesson 1
arcpuzzles generate 250925d67253 --count 1 --seed 20261108 --test 1