← aa45957d8241 · aae03e82a263 →

aad4e3a1d5e3

A 10..12 by 11..14 grid contains crossing near-full 5/6 guides and a 6..9-cell, two-color motif in one quadrant. Reflect the motif across both guide axes into all four quadrants.

parametric familycomposed reflectiondual-axis symmetryguide detection

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 guide-row
      (first (filter (lambda (r)
                       (let ((vals (row-at g r)))
                         (and (all? (lambda (v) (member v (list 5 6))) vals)
                              (>= (count-where (lambda (v) (= v 6)) vals) (- (cols g) 1)))))
                     (range 0 (rows g)))))
    (define guide-col
      (first (filter (lambda (c)
                       (let ((vals (for/list ([r (in-range (rows g))]) (at g r c))))
                         (and (all? (lambda (v) (member v (list 5 6))) vals)
                              (>= (count-where (lambda (v) (= v 5)) vals) (- (rows g) 1)))))
                     (range 0 (cols g)))))
    (define (interesting grid)
      (filter (lambda (cell) (not (member (third cell) (list 0 5 6)))) (grid-cells grid)))
    (define (mirror out cell axis p)
      (let* ((r (first cell)) (c (second cell)) (v (third cell))
             (nr (if (= axis 0) r (- (* 2 p) r)))
             (nc (if (= axis 0) (- (* 2 p) c) c)))
        (if (in-bounds? nr nc (rows g) (cols g)) (set-cell out nr nc v) out)))
    (let* ((vpass (for/fold ([out g]) ([cell (in-list (interesting g))]) (mirror out cell 0 guide-col))))
      (for/fold ([out vpass]) ([cell (in-list (interesting vpass))]) (mirror out cell 1 guide-row)))))

Provenance

Generator
generators/aad4e3a1d5e3/generator.py
Notes and decisions
generators/aad4e3a1d5e3/notes.md
Review label
reviewed_safe
Generator SHA-256
9644b3b42ef6fa3ab533b8cd8568523154f4996efff01354836fdeb6a6634752
Rule hash
3fcc1761aea7
Sources
bank:c025e54ed3a2
Lesson seeds
20261108, 20261109, 20261110, 20261111, 20261112
Reproduce lesson 1
arcpuzzles generate aad4e3a1d5e3 --count 1 --seed 20261108 --test 1