← 774e0d59a5ff · 77871cecd343 →
7768dfc99e25
Among red objects, crop the one that touches the grid border.
parametric familyborder detectioncomponent selectionoutput-size crop
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).
Reference rule (Racket)
(rule! (let ((dummy 0)) (define (crop-bbox grid cells) (let* ((bb (bbox-of-cells cells)) (r0 (first bb)) (c0 (second bb)) (r1 (third bb)) (c1 (fourth bb))) (subgrid grid r0 c0 r1 c1))) (let* ((comps (filter (lambda (obj) (= (obj-color obj) 2)) (objects g 0))) (comp (first (filter (lambda (obj) (any? (lambda (p) (or (= (first p) 0) (= (first p) (- (rows g) 1)) (= (second p) 0) (= (second p) (- (cols g) 1)))) (obj-cells obj))) comps)))) (crop-bbox g (obj-cells comp)))))
Provenance
- Generator
- generators/7768dfc99e25/generator.py
- Notes and decisions
- generators/7768dfc99e25/notes.md
- Review label
- reviewed_safe
- Generator SHA-256
- 371e1a77c90fa8d6b797a998640849ee2570757218df6926827efbfccfe11834
- Rule hash
- be1e3a1eb944
- Sources
- bank:0e5302a13aba
- Lesson seeds
- 20261108, 20261109, 20261110, 20261111, 20261112
- Reproduce lesson 1
arcpuzzles generate 7768dfc99e25 --count 1 --seed 20261108 --test 1