← 6c8eefa043e1 · 6cc68e9e1125 →
6c93e8516229
A 0-background grid contains 3-8 separated green (3) tree components. Each board includes all three canonical topology classes: degree-3 T-junctions recolor red (2), exactly-two-corner paths recolor magenta (6), and all other paths/junctions recolor blue (1). Canonical-sized profiles and explicit degree-4/three-corner counterexamples prevent position, generic-junction, and at-least-two-corners shortcuts.
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 mask (cellmap g (r c v) (if (= v 3) 1 0)))
(define objs (objects mask 0))
(define cell-colors (make-hash))
(for-each (lambda (o)
(define cells (obj-cells o))
(define cell-set
(list->set (map (lambda (p) (cons (first p) (second p)))
cells)))
(define corners 0)
(define tjunctions 0)
(for-each (lambda (p)
(define r (first p))
(define c (second p))
(define nbr-count 0)
(define nbrs (list))
(for-each (lambda (d)
(define nr (+ r (car d)))
(define nc (+ c (cdr d)))
(when
(set-member? cell-set (cons nr nc))
(set! nbr-count (+ nbr-count 1))
(set! nbrs (cons d nbrs))))
(list (cons -1 0)
(cons 1 0)
(cons 0 -1)
(cons 0 1)))
(when
(= nbr-count 2)
(define d1 (first nbrs))
(define d2 (second nbrs))
(unless
(or
(= (car d1) (car d2))
(= (cdr d1) (cdr d2)))
(set! corners (+ corners 1))))
(when
(= nbr-count 3)
(set! tjunctions (+ tjunctions 1))))
cells)
(define color
(cond ((> tjunctions 0) 2) ((= corners 2) 6) (else 1)))
(for-each (lambda (p)
(hash-set! cell-colors
(cons (first p) (second p))
color))
cells))
objs)
(cellmap g (r c v) (hash-ref cell-colors (cons r c) v))))))Provenance
- Generator
- generators/6c93e8516229/generator.py
- Notes and decisions
- generators/6c93e8516229/notes.md
- Review label
- reviewed_safe
- Generator SHA-256
- b0ebe6d546dab4c0d4fe8c8163bfa4325f75e6652f586a69735644c8d01a4271
- Rule hash
- 6b0505b049ac
- Sources
- training
- Lesson seeds
- 20261108, 20261109, 20261110, 20261111, 20261112
- Reproduce lesson 1
arcpuzzles generate 6c93e8516229 --count 1 --seed 20261108 --test 1