← b91a3b0baac4 · b985d561c63b →
b94abe09d9ac
Place 3-5 separated monochrome objects left-to-right with a nontrivial shape-equivalence partition; compare translation-normalized shapes into an N x N 8/0 equality matrix.
matrix constructionobject normalizationrelational 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).
Reference rule (Racket)
(rule!
(let ((dummy 0))
(define (nonzero-components grid)
(let loop ([remaining (filter-cells grid (lambda (r c v) (not (= v 0))))] [out (list)])
(if (empty? remaining)
(reverse out)
(let ((region (connected-region grid (first (first remaining)) (second (first remaining))
(lambda (r c v) (not (= v 0))) 4)))
(loop (filter (lambda (p) (not (member? p region))) remaining) (cons region out))))))
(define (pos< a b)
(if (= (first a) (first b)) (< (second a) (second b)) (< (first a) (first b))))
(define (canon cells) (sort (normalize-cells cells) pos<))
(define comps
(sort (nonzero-components g)
(lambda (a b) (< (second (bbox-of-cells a)) (second (bbox-of-cells b))))))
(define shapes (map canon comps))
(define n (length shapes))
(grid-from-fn n n
(lambda (r c) (if (equal? (list-ref shapes r) (list-ref shapes c)) 8 0)))))Provenance
- Generator
- generators/b94abe09d9ac/generator.py
- Notes and decisions
- generators/b94abe09d9ac/notes.md
- Review label
- reviewed_safe
- Generator SHA-256
- 73b4103fdf601f011328cd274f95db31cd54beb53d79061bff64b99199dd7c13
- Rule hash
- f8c93b65800b
- Sources
- bank:dc02f6f7c147
- Lesson seeds
- 20261108, 20261109, 20261110, 20261111, 20261112
- Reproduce lesson 1
arcpuzzles generate b94abe09d9ac --count 1 --seed 20261108 --test 1