← c1ae510562f9 · c1b80aa665e4 →

c1b540a1d7b0

Single gray(5) blob of 2x2 rooms linked by bridges plus dangling arms/tips; oracle recolors 3-cell arm runs to 2 and remaining gray to 8.

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)
  ;; A gray(5) blob = 2x2 "nodes" joined by 1-wide arms. Recolor node cells cyan(8)
  ;; and arm cells red(2). Each arm is a straight run of exactly 3 cells: seeded at
  ;; a degree-1 tip (extend 3 toward its neighbor) or, for a bridge thin cell (not
  ;; in any 2x2), extend 3 toward a thick neighbor (tie-break up,left,down,right).
  (let* ((h (rows g)) (w (cols g))
         (dirs (list (cons -1 0) (cons 0 -1) (cons 1 0) (cons 0 1))))
    (define (sh? a b) (and (>= a 0) (< a h) (>= b 0) (< b w) (= (cell-at g a b) 5)))
    (define (in2x2? a b)
      (for*/or ((da (list -1 0)) (db (list -1 0)))
        (and (sh? (+ a da 0) (+ b db 0)) (sh? (+ a da 0) (+ b db 1))
             (sh? (+ a da 1) (+ b db 0)) (sh? (+ a da 1) (+ b db 1)))))
    (define red (make-hash))
    (define (add-arm a b da db)
      (for ((k (list 0 1 2)))
        (let ((x (+ a (* da k))) (y (+ b (* db k))))
          (when (sh? x y) (hash-set! red (cons x y) #t)))))
    ;; tip arms
    (for* ((a (range h)) (b (range w)))
      (when (sh? a b)
        (let ((nb (filter (lambda (d) (sh? (+ a (car d)) (+ b (cdr d)))) dirs)))
          (when (= (length nb) 1)
            (add-arm a b (car (first nb)) (cdr (first nb)))))))
    ;; bridge arms: thin cells not yet covered
    (for* ((a (range h)) (b (range w)))
      (when (and (sh? a b) (not (in2x2? a b)) (not (hash-has-key? red (cons a b))))
        (let ((chosen (findf (lambda (d)
                               (and (sh? (+ a (car d)) (+ b (cdr d)))
                                    (in2x2? (+ a (car d)) (+ b (cdr d)))))
                             dirs)))
          (when chosen (add-arm a b (car chosen) (cdr chosen))))))
    (grid-from-fn h w
      (lambda (r c)
        (if (sh? r c) (if (hash-has-key? red (cons r c)) 2 8) (cell-at g r c)))))))

Provenance

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