← 1a92a12bac06 · 1b2b9283b4ab →
1acd7639146e
Exactly one marker each of colors 1, 2 and 3 defines an axis-aligned rectangle: 1 is the shared corner, 2 fixes its horizontal reach and 3 its vertical reach. Paint the complete outline on a fresh grid in color 8.
rectangle completionshared-corner reasoningwidth-height transfer
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 (sign n) (cond ((> n 0) 1) ((< n 0) -1) (else 0))) (define (span-cells a b (include-ends #t)) (let* ((r1 (first a)) (c1 (second a)) (r2 (first b)) (c2 (second b)) (dr (sign (- r2 r1))) (dc (sign (- c2 c1))) (n (max (abs (- r2 r1)) (abs (- c2 c1)))) (cells (for/list ((i (in-range 0 (+ n 1)))) (list (+ r1 (* i dr)) (+ c1 (* i dc)))))) (if include-ends cells (filter (lambda (p) (and (not (equal? p a)) (not (equal? p b)))) cells)))) (define (points-of grid color) (sort (find-color grid color) cell<)) (define (bbox-border pts) (let* ((r0 (apply min (map first pts))) (r1 (apply max (map first pts))) (c0 (apply min (map second pts))) (c1 (apply max (map second pts)))) (remove-duplicates (append (span-cells (list r0 c0) (list r0 c1)) (span-cells (list r1 c0) (list r1 c1)) (span-cells (list r0 c0) (list r1 c0)) (span-cells (list r0 c1) (list r1 c1)))))) (define shared (first (points-of g 1))) (define other-h (first (points-of g 2))) (define other-v (first (points-of g 3))) (define r0 (min (first shared) (first other-v))) (define r1 (max (first shared) (first other-v))) (define c0 (min (second shared) (second other-h))) (define c1 (max (second shared) (second other-h))) (paint-cells (empty-grid (rows g) (cols g) 0) (bbox-border (list (list r0 c0) (list r1 c1))) 8)))
Provenance
- Generator
- generators/1acd7639146e/generator.py
- Notes and decisions
- generators/1acd7639146e/notes.md
- Review label
- reviewed_safe
- Generator SHA-256
- 2849a0ba57a96150f31c48156b68156d06fb678496e80cb270f35b01aeaf48e1
- Rule hash
- 695d22e3417f
- Sources
- bank:76a45e02cc21
- Lesson seeds
- 20261108, 20261109, 20261110, 20261111, 20261112
- Reproduce lesson 1
arcpuzzles generate 1acd7639146e --count 1 --seed 20261108 --test 1