← public_eval_f560132c · public_eval_faa9f03d →

public_eval_f931b4a8

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!
 ;; Split the even square into four equal quadrants. Nonzero pixels in the
 ;; upper-left and upper-right count the requested output rows and columns.
 ;; Expand each lower-left palette pixel to a quadrant-sized constant block.
 ;; Repeat the lower-right stencil over that backing: nonzero stencil pixels
 ;; overwrite it and zero pixels expose it. An entirely absent stencil means
 ;; repeat the palette directly, without block expansion. Crop to the counts.
 (lambda (g)
  (let ()
   (define side (quotient (rows g) 2))
   (define output-height
    (for*/sum ((r (range side)) (c (range side))) (if (= (at g r c) 0) 0 1)))
   (define output-width
    (for*/sum ((r (range side)) (c (range side))) (if (= (at g r (+ side c)) 0) 0 1)))
   (define has-stencil
    (for*/or ((r (range side)) (c (range side))) (not (= (at g (+ side r) (+ side c)) 0))))
   (define backing
    (for/list ((r (range output-height)))
     (for/list ((c (range output-width)))
      (if has-stencil
       (at g (+ side (quotient r side)) (quotient c side))
       (at g (+ side (modulo r side)) (modulo c side))))))
   (for/list ((r (range output-height)))
    (for/list ((c (range output-width)))
     (let ((ink (at g (+ side (modulo r side)) (+ side (modulo c side)))))
      (if (= ink 0) (at backing r c) ink)))))))

Provenance

Generator
generators/public_eval_f931b4a8/generator.py
Notes and decisions
generators/public_eval_f931b4a8/notes.md
Review label
reviewed_safe
Generator SHA-256
71931d2074149e07efa44777f55c2fff81dfb8b5a9552ee956f719dcf069e5ce
Rule hash
135ab0d16bda
Sources
evaluation, public_eval:f931b4a8
Lesson seeds
20261108, 20261109, 20261110, 20261111, 20261112
Reproduce lesson 1
arcpuzzles generate public_eval_f931b4a8 --count 1 --seed 20261108 --test 1