← b6f34233d788 · b71c45e9a3c0 →
b705ef68a501
Use the row-zero maroon count to select the kth component in canonical size-and-position order.
component areasdynamic selectionranking
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* ((k (count-where (lambda (v) (= v 9)) (first g)))
(objs (sort (filter (lambda (o)
(and (not (= (obj-color o) 9))
(all? (lambda (p) (> (first p) 0)) (obj-cells o))))
(objects g 0))
(lambda (a b)
(cond [(not (= (obj-size a) (obj-size b))) (< (obj-size a) (obj-size b))]
[(not (= (obj-r1 a) (obj-r1 b))) (< (obj-r1 a) (obj-r1 b))]
[(not (= (obj-c1 a) (obj-c1 b))) (< (obj-c1 a) (obj-c1 b))]
[(not (= (obj-h a) (obj-h b))) (< (obj-h a) (obj-h b))]
[(not (= (obj-w a) (obj-w b))) (< (obj-w a) (obj-w b))]
[else (< (obj-color a) (obj-color b))]))))
(obj (list-ref objs (- k 1))))
(grid-from-fn (obj-h obj) (obj-w obj)
(lambda (r c)
(let ((rr (+ (obj-r1 obj) r)) (cc (+ (obj-c1 obj) c)))
(if (member? (list rr cc) (obj-cells obj)) (at g rr cc) 0))))))Provenance
- Generator
- generators/b705ef68a501/generator.py
- Notes and decisions
- generators/b705ef68a501/notes.md
- Review label
- reviewed_safe
- Generator SHA-256
- bcac5f0659094b211c589f3319b27f830e908a95f7ca8a469d973b15647185a1
- Rule hash
- 998a777867df
- Sources
- bank:0f1ff2289d6f
- Lesson seeds
- 20261108, 20261109, 20261110, 20261111, 20261112
- Reproduce lesson 1
arcpuzzles generate b705ef68a501 --count 1 --seed 20261108 --test 1