← b570c79ec730 · b5af3d6b3cd5 →
b57f299dcdb3
Find every yellow-centered plus whose four petals share one nonzero, non-background color; output the most frequent petal color as a 1x1 grid.
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* ((bg (mode g))
(centers (for*/list ((r (range 1 (- h 1))) (c (range 1 (- w 1)))
#:when
(and
(= (at g r c) 4)
(let ((up (at g (- r 1) c))
(dn (at g (+ r 1) c))
(lt (at g r (- c 1)))
(rt (at g r (+ c 1))))
(and
(!= up 0)
(!= up bg)
(= up dn)
(= up lt)
(= up rt)))))
(at g (- r 1) c)))
(best-color (let ((freq (make-hash))
(best 0)
(best-count -1))
(for ((col centers))
(hash-set! freq col (+ 1 (hash-ref freq col 0))))
(hash-for-each freq
(lambda (k v)
(when
(> v best-count)
(set! best k)
(set! best-count v))))
best)))
(build-grid 1 1 (r c) best-color)))))Provenance
- Generator
- generators/b57f299dcdb3/generator.py
- Notes and decisions
- generators/b57f299dcdb3/notes.md
- Review label
- reviewed_safe
- Generator SHA-256
- ec5c95c23f3dfaad028a0cc9c138a4997fcebdb1e4b3bcd179c5f855f0a3a4c6
- Rule hash
- 793f1a180fe5
- Sources
- augmented, training
- Lesson seeds
- 20261108, 20261109, 20261110, 20261111, 20261112
- Reproduce lesson 1
arcpuzzles generate b57f299dcdb3 --count 1 --seed 20261108 --test 1