← 053118990e92 · 056999828b88 →

05409de4bec8

A modal black field contains four structured cells of one target color and two dense distractor colors. Rows and columns containing exactly two target cells become full target-colored lines; for a four-corner rectangle, only the longer rectangle axis is extended.

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* ((target-color
          (find-first
           (lambda (color)
             (let* ((cells (find-color g color))
                    (row-count (length (remove-duplicates (map first cells))))
                    (col-count (length (remove-duplicates (map second cells)))))
               (and (= (length cells) 4)
                    (<= row-count 3)
                    (<= col-count 3))))
           (filter (lambda (color) (!= color 0)) (grid-colors g))))
         (target-cells (find-color g target-color))
         (target-rows (remove-duplicates (map first target-cells)))
         (target-cols (remove-duplicates (map second target-cells)))
         (row-pairs
          (filter
           (lambda (row)
             (= (count-where (lambda (cell) (= (first cell) row)) target-cells) 2))
           target-rows))
         (col-pairs
          (filter
           (lambda (col)
             (= (count-where (lambda (cell) (= (second cell) col)) target-cells) 2))
           target-cols))
         (rectangle? (and (= (length row-pairs) 2) (= (length col-pairs) 2)))
         (horizontal
          (if rectangle?
              (if (> (abs (- (second col-pairs) (first col-pairs)))
                     (abs (- (second row-pairs) (first row-pairs))))
                  row-pairs
                  (list))
              row-pairs))
         (vertical
          (if rectangle?
              (if (> (abs (- (second col-pairs) (first col-pairs)))
                     (abs (- (second row-pairs) (first row-pairs))))
                  (list)
                  col-pairs)
              col-pairs)))
    (cellmap
     g (r c v)
     (if (or (find (lambda (row) (= row r)) horizontal)
             (find (lambda (col) (= col c)) vertical))
         target-color
         0))))

Provenance

Generator
generators/05409de4bec8/generator.py
Notes and decisions
generators/05409de4bec8/notes.md
Review label
reviewed_safe
Generator SHA-256
eb5433a5ff10d59419a771cf02ca4378fcbaffdb2835599c86fe160c6fb37fc9
Rule hash
dfbf6efa8173
Sources
augmented, training
Lesson seeds
20261108, 20261109, 20261110, 20261111, 20261112
Reproduce lesson 1
arcpuzzles generate 05409de4bec8 --count 1 --seed 20261108 --test 1