← ffe1da16c912 · public_eval_135a2760 →
public_eval_0934a4d8
No summary in the catalog.
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!
;; Color 8 is a rectangular occluder. The 4b-2 square is generated from a
;; 2b seed mirrored across both far axes; its off-diagonal b-blocks are
;; transposes. Recover each hidden cell from its full symmetry orbit.
(lambda (g)
(let ()
(define crop-marker #f)
(define n (rows g))
(define b (/ (+ n 2) 4))
(define axis (+ n 1))
(define hidden (find-color g 8))
(define r0 (min-of first hidden))
(define r1 (max-of first hidden))
(define c0 (min-of second hidden))
(define c1 (max-of second hidden))
(define (inside? p)
(and (>= (first p) 0) (< (first p) n) (>= (second p) 0) (< (second p) n)))
(define (mirrors r c)
(filter inside?
(list (list r c) (list (- axis r) c) (list r (- axis c))
(list (- axis r) (- axis c)))))
(define (orbit r c)
(let* ((rr (min r (- axis r))) (cc (min c (- axis c)))
(off-diagonal
(or (and (< rr b) (>= cc b) (< cc (* 2 b)))
(and (< cc b) (>= rr b) (< rr (* 2 b))))))
(if off-diagonal (append (mirrors r c) (mirrors cc rr)) (mirrors r c))))
(define (recover r c)
(let ((source
(first (filter (lambda (p) (!= (at g (first p) (second p)) 8))
(orbit r c)))))
(at g (first source) (second source))))
(define patch
(build-list (+ 1 (- r1 r0))
(lambda (dr)
(build-list (+ 1 (- c1 c0))
(lambda (dc) (recover (+ r0 dr) (+ c0 dc)))))))
(if crop-marker
(let* ((colors (grid-colors patch))
(rare
(for/fold ((best (first colors))) ((color (in-list (rest colors))))
(if (< (count-color patch color) (count-color patch best)) color best)))
(cells (find-color patch rare))
(mr0 (min-of first cells)) (mr1 (max-of first cells))
(mc0 (min-of second cells)) (mc1 (max-of second cells)))
(subgrid patch mr0 mc0 mr1 mc1))
patch))))
Provenance
- Generator
- generators/public_eval_0934a4d8/generator.py
- Notes and decisions
- generators/public_eval_0934a4d8/notes.md
- Review label
- reviewed_safe
- Generator SHA-256
- eb9b55aaafe5e75678531d80ccfa1fd0f57116f4b8b10d0ac4b0082ee0791f0f
- Rule hash
- df31167d64e4
- Sources
- evaluation, public_eval:0934a4d8
- Lesson seeds
- 20261108, 20261109, 20261110, 20261111, 20261112
- Reproduce lesson 1
arcpuzzles generate public_eval_0934a4d8 --count 1 --seed 20261108 --test 1