← public_eval_67e490f4 · public_eval_6e4f6532 →
public_eval_6e453dd6
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!
;; Slide each black 4-component right until it contacts the vertical gray wall.
;; Recover enclosed background holes, excluding the exterior and right strip.
;; Only hole cells two columns left of the wall project red through its right
;; strip. Open notches and holes behind a thicker black border do not project.
;; Largest mode selects the eligible cavity of greatest actual area; ties are
;; resolved top-to-bottom then left-to-right, never by bounding-box area.
(lambda (g)
(let ()
(define largest? #f)
(define bg (mode g -1))
(define wall (for/first ((c (range w)) #:when (for/and ((r (range h))) (= (at g r c) 5))) c))
(define shapes (filter (lambda (o) (= (obj-color o) 0)) (objects g bg)))
(define blank (for*/fold ((out g)) ((o shapes) (p (obj-cells o)))
(set-cell out (first p) (second p) bg)))
(define docked
(for/fold ((out blank)) ((o shapes))
(let ((delta (- wall 1 (obj-c2 o))))
(for/fold ((acc out)) ((p (obj-cells o)))
(set-cell acc (first p) (+ (second p) delta) 0)))))
(define holes
(filter (lambda (o)
(and (= (obj-color o) bg) (> (obj-r1 o) 0) (< (obj-r2 o) (- h 1))
(> (obj-c1 o) 0) (< (obj-c2 o) (- wall 1))))
(objects docked -1)))
(define eligible
(filter (lambda (o) (ormap (lambda (p) (= (second p) (- wall 2))) (obj-cells o))) holes))
(define ordered
(sort eligible (lambda (a b)
(or (> (obj-size a) (obj-size b))
(and (= (obj-size a) (obj-size b))
(or (< (obj-r1 a) (obj-r1 b))
(and (= (obj-r1 a) (obj-r1 b)) (< (obj-c1 a) (obj-c1 b)))))))))
(define selected (if (and largest? (not (null? ordered))) (list (first ordered)) eligible))
(define signal-rows
(remove-duplicates
(append-map (lambda (o) (map first (filter (lambda (p) (= (second p) (- wall 2))) (obj-cells o)))) selected)))
(for*/fold ((out docked)) ((r signal-rows) (c (range (+ wall 1) w)))
(set-cell out r c 2)))))
Provenance
- Generator
- generators/public_eval_6e453dd6/generator.py
- Notes and decisions
- generators/public_eval_6e453dd6/notes.md
- Review label
- reviewed_safe
- Generator SHA-256
- 3a55e34a97112c952844d1182a8de67bf803eb3e1799f3500e4338fe27df6b1b
- Rule hash
- 5a47ae36c4ad
- Sources
- evaluation, public_eval:6e453dd6
- Lesson seeds
- 20261108, 20261109, 20261110, 20261111, 20261112
- Reproduce lesson 1
arcpuzzles generate public_eval_6e453dd6 --count 1 --seed 20261108 --test 1