← dafb4f819b93 · db63430eeffa →
db4cb6bcf6fe
Four distinct colors mark four sparse point sets. Complete each color by filling row segments and then column segments, normalize the completed shapes up to translation, sort objects by color, and output a 4x4 equivalence matrix with diagonal 5, matching pairs 8, and nonmatches 0. Generated lessons make raw-marker, bounding-box, and area-only shortcuts fail even though all three fit every canonical pair.
double closureshape normalizationsymbolic relation 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 (points-of grid color) (sort (find-color grid color) cell<)) (define (row-close cells) (remove-duplicates (flatmap (lambda (r) (let* ((cols (sort (map second (filter (lambda (p) (= (first p) r)) cells)) <))) (if (empty? cols) (list) (for/list ((c (in-range (first cols) (+ (last cols) 1)))) (list r c))))) (remove-duplicates (map first cells))))) (define (col-close cells) (remove-duplicates (flatmap (lambda (c) (let* ((rs (sort (map first (filter (lambda (p) (= (second p) c)) cells)) <))) (if (empty? rs) (list) (for/list ((r (in-range (first rs) (+ (last rs) 1)))) (list r c))))) (remove-duplicates (map second cells))))) (define (double-close cells) (col-close (row-close cells))) (define (shape-key cells) (format "~a" (sort (normalize-cells cells) cell<))) (let* ((colors (sort (grid-colors g 0) <)) (keys (map (lambda (color) (shape-key (double-close (points-of g color)))) colors)) (n (length colors))) (grid-from-fn n n (lambda (r c) (if (= r c) 5 (if (equal? (list-ref keys r) (list-ref keys c)) 8 0)))))))
Provenance
- Generator
- generators/db4cb6bcf6fe/generator.py
- Notes and decisions
- generators/db4cb6bcf6fe/notes.md
- Review label
- reviewed_safe
- Generator SHA-256
- ef5e4911ca717c3fffbdbe9748afb6dc85c1def529bec0a6f9a120a3d6e3ce26
- Rule hash
- 38e335f43e6f
- Sources
- bank:129d068bbf4e
- Lesson seeds
- 20261108, 20261109, 20261110, 20261111, 20261112
- Reproduce lesson 1
arcpuzzles generate db4cb6bcf6fe --count 1 --seed 20261108 --test 1