← af9ade3c3e16 · b0881729e53a →
b0087e6a72e9
Crop the lexicographically smallest qualifying patterned object by area, orientation, symmetry, row, and column.
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 -1))
(objs (objects g bg)))
(define (bbox-dims obj)
(let* ((bb (obj-bbox obj))
(hh (+ 1 (- (third bb) (first bb))))
(ww (+ 1 (- (fourth bb) (second bb)))))
(list hh ww)))
(define (obj-crop obj)
(let ((bb (obj-bbox obj)))
(crop g (first bb) (second bb) (third bb) (fourth bb))))
(define (hsym? grid) (equal? grid (reverse grid)))
(define (candidate? obj)
(let* ((dims (bbox-dims obj))
(hh (first dims))
(ww (second dims))
(area (* hh ww))
(holes (- area (obj-size obj))))
(and (> holes 0) (>= hh 3) (>= ww 3) (<= area 25))))
(define (rank obj)
(let* ((bb (obj-bbox obj))
(dims (bbox-dims obj))
(hh (first dims))
(ww (second dims))
(area (* hh ww))
(orient (cond ((> hh ww) 0) ((> ww hh) 1) (else 2)))
(hf (if (hsym? (obj-crop obj)) 0 1)))
(+ (* area 100000)
(* orient 10000)
(* hf 1000)
(* (first bb) 100)
(second bb))))
(obj-crop (pick-min (filter candidate? objs) rank))))))Provenance
- Generator
- generators/b0087e6a72e9/generator.py
- Notes and decisions
- generators/b0087e6a72e9/notes.md
- Review label
- reviewed_safe
- Generator SHA-256
- c98419901851567022058b5a2db717ce7409cb6edc1c5259c172a75ab93b2d56
- Rule hash
- 7b8bf7c732a8
- Sources
- augmented, training
- Lesson seeds
- 20261108, 20261109, 20261110, 20261111, 20261112
- Reproduce lesson 1
arcpuzzles generate b0087e6a72e9 --count 1 --seed 20261108 --test 1