← 43cca8eff94f · 441d3a994cf6 →
441c97bcdb07
Place three identical translated copies of one 3..5-cell 4-connected shape, in one color, at the top-left, top-right, and bottom-left corners of an axis-aligned rectangle. Complete the empty bottom-right corner with a fourth copy in the same orientation and color.
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! (let ((dummy 0)) (define (fifth xs) (list-ref xs 4)) (define (e8b-list< a b) (cond ((empty? a) #f) ((< (first a) (first b)) #t) ((> (first a) (first b)) #f) (else (e8b-list< (rest a) (rest b))))) (define (t10-norm-cells cells) (let* ((bb (bbox-of-cells cells)) (r0 (first bb)) (c0 (second bb)) (r1 (third bb)) (c1 (fourth bb))) (list (map (lambda (p) (list (- (first p) r0) (- (second p) c0))) cells) (+ 1 (- r1 r0)) (+ 1 (- c1 c0)) r0 c0))) (define (t3-component-items grid) (map (lambda (obj) (let* ((info (t10-norm-cells (obj-cells obj))) (offs (first info)) (sh (second info)) (sw (third info)) (bb (obj-bbox obj))) (list (obj-color obj) offs sh sw (first bb) (second bb) obj))) (objects grid 0))) (let* ((items (t3-component-items g)) (pivot (first (sort items (lambda (a b) (e8b-list< (list (fifth a) (list-ref a 5)) (list (fifth b) (list-ref b 5))))))) (prow (fifth pivot)) (pcol (list-ref pivot 5)) (horiz (first (filter (lambda (it) (and (= (fifth it) prow) (not (= (list-ref it 5) pcol)))) items))) (vert (first (filter (lambda (it) (and (= (list-ref it 5) pcol) (not (= (fifth it) prow)))) items))) (mr (fifth vert)) (mc (list-ref horiz 5))) (paint-cells g (map (lambda (p) (list (+ mr (first p)) (+ mc (second p)))) (second pivot)) (first pivot)))))
Provenance
- Generator
- generators/441c97bcdb07/generator.py
- Notes and decisions
- generators/441c97bcdb07/notes.md
- Review label
- reviewed_safe
- Generator SHA-256
- 1ff876f8be6890633bff538663e9ab3cf9225ae9731f49ef6aaa4de5e32800af
- Rule hash
- a51bdd8a29a6
- Sources
- bank:66491d778d88
- Lesson seeds
- 20261108, 20261109, 20261110, 20261111, 20261112
- Reproduce lesson 1
arcpuzzles generate 441c97bcdb07 --count 1 --seed 20261108 --test 1