← f4d4fb4404c6 · f4f11295a6f5 →

f4dc936dfcbb

Pairs of 2s define horizontal row spans and pairs of 3s define vertical column spans. Return a new zero grid with 8 only at row/column pairs that satisfy both inclusive span-containment tests; ignore all distractors.

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* ((row-spans
          (filter (lambda (span) span)
            (for/list ([r (range 0 h)])
              (let ((cs (for/list ([c (range 0 w)] #:when (= (at g r c) 2)) c)))
                (if (>= (length cs) 2) (list r (min-list cs) (max-list cs)) #f)))))
         (col-spans
          (filter (lambda (span) span)
            (for/list ([c (range 0 w)])
              (let ((rs (for/list ([r (range 0 h)] #:when (= (at g r c) 3)) r)))
                (if (>= (length rs) 2) (list c (min-list rs) (max-list rs)) #f))))))
    (foldl
      (lambda (row-span out)
        (foldl
          (lambda (col-span acc)
            (let ((r (first row-span)) (c0 (second row-span)) (c1 (third row-span))
                  (c (first col-span)) (r0 (second col-span)) (r1 (third col-span)))
              (if (and (<= c0 c) (<= c c1) (<= r0 r) (<= r r1))
                  (set-cell acc r c 8)
                  acc)))
          out
          col-spans))
      (empty-grid h w 0)
      row-spans)))

Provenance

Generator
generators/f4dc936dfcbb/generator.py
Notes and decisions
generators/f4dc936dfcbb/notes.md
Review label
reviewed_safe
Generator SHA-256
30f13596807e2d0d5b28b090d1cf738d6d482b2f3d02448d9cd9f68517842e8a
Rule hash
b804c88a8a55
Sources
bank:53ccebf2a36f
Lesson seeds
20261108, 20261109, 20261110, 20261111, 20261112
Reproduce lesson 1
arcpuzzles generate f4dc936dfcbb --count 1 --seed 20261108 --test 1