← 7946249c9684 · 7a15f5e5ebd9 →
79a30e61d332
Dense canonical 4x6 lattice of 3x3 symbol tiles. The color-8 tile defines an exact binary mask shared by 3..6 keys; matching keys become 8 and nonzero tiles between aligned keys become 7. A scheduled horizontal, vertical, and mixed curriculum includes exact-mask counterexamples.
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 tile-rows (quotient (+ h 1) 4))
(define tile-cols (quotient (+ w 1) 4))
(define tile-pos
(for*/list ((tr (range 0 tile-rows)) (tc (range 0 tile-cols)))
(list tr tc)))
(define (tile-mask tr tc)
(for*/list ((dr (range 0 3)) (dc (range 0 3)))
(if (zero? (at g (+ 1 (* 4 tr) dr) (+ 1 (* 4 tc) dc))) 0 1)))
(define (tile-has-color? tr tc color)
(for*/or ((dr (range 0 3)) (dc (range 0 3)))
(= (at g (+ 1 (* 4 tr) dr) (+ 1 (* 4 tc) dc)) color)))
(define seed
(find-first (lambda (p) (tile-has-color? (first p) (second p) 8))
tile-pos))
(define key-mask (tile-mask (first seed) (second seed)))
(define key-tiles
(filter (lambda (p) (equal? (tile-mask (first p) (second p)) key-mask))
tile-pos))
(define (key-tile? tr tc)
(for/or ((p key-tiles)) (and (= (first p) tr) (= (second p) tc))))
(define (between? x a b) (or (and (< a x) (< x b)) (and (< b x) (< x a))))
(define (bridge-tile? tr tc)
(for/or ((a key-tiles))
(for/or ((b key-tiles))
(or
(and
(= (first a) tr)
(= (first b) tr)
(between? tc (second a) (second b)))
(and
(= (second a) tc)
(= (second b) tc)
(between? tr (first a) (first b)))))))
(cellmap g
(r c v)
(let ((v v))
(if (or (zero? v) (zero? (modulo r 4)) (zero? (modulo c 4)))
v
(let ((tr (quotient r 4))
(tc (quotient c 4)))
(cond
((key-tile? tr tc) 8)
((bridge-tile? tr tc) 7)
(else v))))))))))Provenance
- Generator
- generators/79a30e61d332/generator.py
- Notes and decisions
- generators/79a30e61d332/notes.md
- Review label
- reviewed_safe
- Generator SHA-256
- 02b862a0f357a8ac34aa72ead821990192619899851ff0182dd16d0e6b6c85b0
- Rule hash
- 0b623466d0bd
- Sources
- training
- Lesson seeds
- 20261108, 20261109, 20261110, 20261111, 20261112
- Reproduce lesson 1
arcpuzzles generate 79a30e61d332 --count 1 --seed 20261108 --test 1