← df92ae881dc8 · dfa9d0b2dd41 →

dfa5c1702b4c

Two to seven distinct-color, solid, separated rectangles on background 0. In top/left order, output their pairwise row/column projection matrix: both=3, row only=1, column only=2, neither=0. Alternate teaching inputs that distinguish ordering and one-cell overlaps with varied layouts.

component analysisdynamic matrixrelational reasoning

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 ((objs (sort (objects g 0)
                    (lambda (a b)
                      (let ((ba (obj-bbox a)) (bb (obj-bbox b)))
                        (if (= (first ba) (first bb))
                            (< (second ba) (second bb))
                            (< (first ba) (first bb))))))))
    (define (row-overlap? a b)
      (not (or (< (third a) (first b)) (< (third b) (first a)))))
    (define (col-overlap? a b)
      (not (or (< (fourth a) (second b)) (< (fourth b) (second a)))))
    (grid-from-fn (length objs) (length objs)
      (lambda (i j)
        (let* ((b1 (obj-bbox (list-ref objs i)))
               (b2 (obj-bbox (list-ref objs j)))
               (ro (row-overlap? b1 b2))
               (co (col-overlap? b1 b2)))
          (if (and ro co) 3 (if ro 1 (if co 2 0))))))))

Provenance

Generator
generators/dfa5c1702b4c/generator.py
Notes and decisions
generators/dfa5c1702b4c/notes.md
Review label
reviewed_safe
Generator SHA-256
0ba5665018235581095d844bd1ad759c0ee30fb5b9d36c4602bf5c45d130fd4e
Rule hash
5264524f1c03
Sources
bank:c025e54ed3a2
Lesson seeds
20261108, 20261109, 20261110, 20261111, 20261112
Reproduce lesson 1
arcpuzzles generate dfa5c1702b4c --count 1 --seed 20261108 --test 1