← a784ff872856 · a7d4df2828a0 →

a7a47f5cee60

Build a contact graph of differently colored four-connected objects and paint only its unique articulation object cyan on a blank same-size grid. Disconnected distractors and a scheduled biconnected contrast refute color, area, and maximum-degree shortcuts.

parametric familycut verticesgraph structuresame-size extraction

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 (adjacent? grid a b) (any? (lambda (p) (any? (lambda (d) (member (list (+ (first p) (first d)) (+ (second p) (second d))) (obj-cells b))) cardinal-deltas)) (obj-cells a))) (define (neighbors grid objs i) (filter (lambda (j) (and (not (= i j)) (adjacent? grid (list-ref objs i) (list-ref objs j)))) (range 0 (length objs)))) (define (union-cells objs ids) (apply append (map (lambda (i) (obj-cells (list-ref objs i))) ids))) (define (neighbors-in grid objs allowed i) (filter (lambda (j) (member j allowed)) (neighbors grid objs i))) (define (cluster-from grid objs start allowed) (let ((seen (make-hash))) (let bfs ((queue (list start)) (acc (list))) (if (empty? queue) (reverse acc) (let ((i (first queue))) (cond ((hash-has-key? seen i) (bfs (rest queue) acc)) ((not (member i allowed)) (bfs (rest queue) acc)) (else (hash-set! seen i #t) (bfs (append (rest queue) (neighbors-in grid objs allowed i)) (cons i acc))))))))) (define (cluster-count grid objs ids skip) (let loop ((remaining (filter (lambda (i) (not (equal? i skip))) ids)) (count 0)) (if (empty? remaining) count (let* ((cl (cluster-from grid objs (first remaining) remaining)) (next-rem (filter (lambda (i) (not (member i cl))) remaining))) (loop next-rem (+ count 1)))))) (define (articulations grid objs ids) (let ((base (cluster-count grid objs ids #f))) (filter (lambda (i) (> (cluster-count grid objs ids i) base)) ids))) (define objs (objects g 0)) (define arts (articulations g objs (range 0 (length objs)))) (paint-cells (empty-grid (rows g) (cols g) 0) (union-cells objs arts) 8)))

Provenance

Generator
generators/a7a47f5cee60/generator.py
Notes and decisions
generators/a7a47f5cee60/notes.md
Review label
reviewed_safe
Generator SHA-256
0b6a6de52c5d0ca364cb727ef89325e6e263e4d154fbf0653181b3233690a0c3
Rule hash
2c1f4bbab8e6
Sources
bank:3a1815be7c2e
Lesson seeds
20261108, 20261109, 20261110, 20261111, 20261112
Reproduce lesson 1
arcpuzzles generate a7a47f5cee60 --count 1 --seed 20261108 --test 1