← b7d9205dd62d · b7fbb716d189 →

b7e4aaffabac

Bridge two separated solid rectangles with color 8 inside the shrunken overlap of their facing spans.

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! (lambda (g)
         (let* ((h (rows g))
                (w (cols g)))
           (begin
             (define rects (objects g 0))
             (define b1 (obj-bbox (nth rects 0)))
             (define b2 (obj-bbox (nth rects 1)))
             (define c1a (nth b1 1))
             (define r2a (nth b1 2))
             (define c2a (nth b1 3))
             (define r1b (nth b2 0))
             (define c1b (nth b2 1))
             (define c2b (nth b2 3))
             (define horizontal (or (< c2a c1b) (< c2b c1a)))
             (if horizontal
                 (let* ((left (if (< c2a c1b) b1 b2))
                        (right (if (< c2a c1b) b2 b1))
                        (lr1 (nth left 0))
                        (lr2 (nth left 2))
                        (lc2 (nth left 3))
                        (rr1 (nth right 0))
                        (rr2 (nth right 2))
                        (rc1 (nth right 1))
                        (lo (+ (max lr1 rr1) 1))
                        (hi (- (min lr2 rr2) 1))
                        (gc1 (+ lc2 1))
                        (gc2 (- rc1 1)))
                   (recolor-cells g
                                  (apply append
                                         (map (lambda (r)
                                                (map (lambda (c) (list r c))
                                                     (range gc1 (+ gc2 1))))
                                              (range lo (+ hi 1))))
                                  8))
                 (let* ((top (if (< r2a r1b) b1 b2))
                        (bot (if (< r2a r1b) b2 b1))
                        (tc1 (nth top 1))
                        (tc2 (nth top 3))
                        (tr2 (nth top 2))
                        (bc1 (nth bot 1))
                        (bc2 (nth bot 3))
                        (br1 (nth bot 0))
                        (lo (+ (max tc1 bc1) 1))
                        (hi (- (min tc2 bc2) 1))
                        (gr1 (+ tr2 1))
                        (gr2 (- br1 1)))
                   (recolor-cells g
                                  (apply append
                                         (map (lambda (r)
                                                (map (lambda (c) (list r c))
                                                     (range lo (+ hi 1))))
                                              (range gr1 (+ gr2 1))))
                                  8)))))))

Provenance

Generator
generators/b7e4aaffabac/generator.py
Notes and decisions
generators/b7e4aaffabac/notes.md
Review label
reviewed_safe
Generator SHA-256
523f2401aa66ade4f0abbdd3fec1d01b88f37f37bcb91a9ee2a1c568237dd920
Rule hash
ac5d2330da57
Sources
augmented, training
Lesson seeds
20261108, 20261109, 20261110, 20261111, 20261112
Reproduce lesson 1
arcpuzzles generate b7e4aaffabac --count 1 --seed 20261108 --test 1