← 7de2798953a7 · 7e03da0eb439 →
7deedd72e091
Split the canonical 3x11 strip at its two color-9 columns, reduce each 3x3 tile to a nonzero occupancy mask, compare masks up to quarter-turn rotation, and emit a 3x3 matrix with 8 for equivalent pairs and 0 otherwise. Each lesson includes explicit count and color counterexamples.
symbolic outputs, pairwise comparison, rotation classes
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 (flat grid) (apply append grid)) (define (lex< a b) (cond ((empty? a) (not (empty? b))) ((empty? b) #f) ((not (= (first a) (first b))) (< (first a) (first b))) (else (lex< (rest a) (rest b))))) (define (full-row? grid r color) (all? (lambda (c) (= (at grid r c) color)) (range 0 (cols grid)))) (define (full-col? grid c color) (all? (lambda (r) (= (at grid r c) color)) (range 0 (rows grid)))) (define (segments-from-dividers n dividers) (let loop ((ds (append dividers (list n))) (prev -1) (acc (list))) (if (empty? ds) (reverse acc) (let ((x (first ds))) (loop (rest ds) x (if (> (- x prev 1) 0) (cons (list (+ prev 1) x) acc) acc)))))) (define (tile-lattice grid) (let* ((divider-rows (filter (lambda (r) (full-row? grid r 9)) (range 0 (rows grid)))) (divider-cols (filter (lambda (c) (full-col? grid c 9)) (range 0 (cols grid)))) (row-bounds (segments-from-dividers (rows grid) divider-rows)) (col-bounds (segments-from-dividers (cols grid) divider-cols))) (map (lambda (rb) (map (lambda (cb) (subgrid grid (first rb) (first cb) (- (second rb) 1) (- (second cb) 1))) col-bounds)) row-bounds))) (define (flat-tiles grid) (let* ((tiles (tile-lattice grid)) (rs (length tiles)) (cs (length (first tiles)))) (list (apply append tiles) rs cs))) (define (occupancy tile) (map (lambda (row) (map (lambda (v) (if (= v 0) 0 1)) row)) tile)) (define (canonical-rotation tile) (let* ((vars (list tile (rotate-cw tile) (rotate-180 tile) (rotate-ccw tile))) (ordered (sort vars (lambda (a b) (lex< (flat a) (flat b)))))) (first ordered))) (let* ((ft (flat-tiles g)) (flat0 (first ft)) (n (length flat0)) (reps (map (lambda (t) (canonical-rotation (occupancy t))) flat0))) (grid-from-fn n n (lambda (i j) (if (equal? (list-ref reps i) (list-ref reps j)) 8 0))))))
Provenance
- Generator
- generators/7deedd72e091/generator.py
- Notes and decisions
- generators/7deedd72e091/notes.md
- Review label
- reviewed_safe
- Generator SHA-256
- e2512216f375bcf5ed24db90b548def0aaee76656e0087206576dd9e2cc0a705
- Rule hash
- 8202ef2f7a10
- Sources
- bank:7f6d2146c992
- Lesson seeds
- 20261108, 20261109, 20261110, 20261111, 20261112
- Reproduce lesson 1
arcpuzzles generate 7deedd72e091 --count 1 --seed 20261108 --test 1