← df0b5d094b2d · df17e660cb8e →

df0d6baae973

Sort distinct-color components numerically and emit an area-winner matrix, using zero on the diagonal and for tied areas.

area comparisonmatrix constructionrelational output

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* ((comps (sort (objects g 0)
                      (lambda (a b)
                        (if (= (obj-color a) (obj-color b))
                            (< (obj-size a) (obj-size b))
                            (< (obj-color a) (obj-color b))))))
         (n (length comps)))
    (grid-from-fn n n
      (lambda (r c)
        (let ((a (nth comps r)) (b (nth comps c)))
          (cond [(= r c) 0]
                [(> (obj-size a) (obj-size b)) (obj-color a)]
                [(> (obj-size b) (obj-size a)) (obj-color b)]
                [else 0]))))))

Provenance

Generator
generators/df0d6baae973/generator.py
Notes and decisions
generators/df0d6baae973/notes.md
Review label
reviewed_safe
Generator SHA-256
35f27805daabb1c12ad6387c76485541a19bc74f6dae83e614c220988983085d
Rule hash
7ebd38f17678
Sources
bank:868e1a8cbe17
Lesson seeds
20261108, 20261109, 20261110, 20261111, 20261112
Reproduce lesson 1
arcpuzzles generate df0d6baae973 --count 1 --seed 20261108 --test 1