← 7c2a3ec6c4fb · 7c7f1f574a18 →
7c2b3290ba62
Panels SOURCE | TARGET | CANDIDATES are separated by color-9 columns. Using occupied positions only, find the unique candidate pair whose union with SOURCE exactly equals TARGET; mark those two candidate indices cyan in a 1xN output strip. Generated lessons vary geometry, candidate count, pair position and panel colors while retaining a canonical-profile lane.
parametric familypair search, inverse union reasoning, symbolic one-hot output
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 (panel-occ panel) (sort (filter (lambda (p) (let ((v (at panel (first p) (second p)))) (and (not (= v 0)) (not (= v 9))))) (grid-positions panel)) cell<)) (define (split-cols-9 grid) (let loop ((c 0) (start 0) (acc (list))) (cond ((>= c (cols grid)) (reverse (if (< start (cols grid)) (cons (subgrid grid 0 start (- (rows grid) 1) (- (cols grid) 1)) acc) acc))) ((all? (lambda (r) (= (at grid r c) 9)) (range 0 (rows grid))) (let scan ((cc c)) (if (and (< cc (cols grid)) (all? (lambda (r) (= (at grid r cc) 9)) (range 0 (rows grid)))) (scan (+ cc 1)) (loop cc cc (if (< start c) (cons (subgrid grid 0 start (- (rows grid) 1) (- c 1)) acc) acc))))) (else (loop (+ c 1) start acc))))) (let* ((panels (split-cols-9 g)) (src (first panels)) (target (second panels)) (cands (rest (rest panels))) (n (length cands)) (src-occ (panel-occ src)) (target-occ (panel-occ target))) (define (pair-ok? i j) (equal? (sort (remove-duplicates (append src-occ (panel-occ (list-ref cands i)) (panel-occ (list-ref cands j)))) cell<) target-occ)) (let search ((i 0) (j 1)) (cond ((>= i n) (empty-grid 1 n 0)) ((>= j n) (search (+ i 1) (+ i 2))) ((pair-ok? i j) (set-cell (set-cell (empty-grid 1 n 0) 0 i 8) 0 j 8)) (else (search i (+ j 1))))))))
Provenance
- Generator
- generators/7c2b3290ba62/generator.py
- Notes and decisions
- generators/7c2b3290ba62/notes.md
- Review label
- reviewed_safe
- Generator SHA-256
- 220eeadbb6ff92aa8a3e0060360b410d5e2bf668e07e6d3383472ccd9028f91b
- Rule hash
- 8518d3e47ce6
- Sources
- bank:0938460c498b
- Lesson seeds
- 20261108, 20261109, 20261110, 20261111, 20261112
- Reproduce lesson 1
arcpuzzles generate 7c2b3290ba62 --count 1 --seed 20261108 --test 1