← dadeacb21d08 · db4cb6bcf6fe →

dafb4f819b93

An 8..14 square has contiguous color runs on its right and bottom borders. Their ordered colors agree while their run lengths may differ; fill an interior cell exactly when its row and column labels agree.

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! (lambda (g)
         (let* ((h (rows g))
                (w (cols g)))
           (cellmap g
                    (r c v)
                    (if (!= 0 v)
                        v
                        (let* ((row-colors (filter (lambda (v) (!= 0 v))
                                                   (map (lambda (cc) (at g r cc))
                                                        (range 0 w))))
                               (col-colors (filter (lambda (v) (!= 0 v))
                                                   (map (lambda (rr) (at g rr c))
                                                        (range 0 h))))
                               (common (filter (lambda (v) (member? v col-colors))
                                               row-colors)))
                          (if (= 1 (length (unique common))) (first (unique common)) 0)))))))

Provenance

Generator
generators/dafb4f819b93/generator.py
Notes and decisions
generators/dafb4f819b93/notes.md
Review label
reviewed_safe
Generator SHA-256
4cb2197b77338fd386373618400ef0e81be47b5a9cbc9e58f1e4c463d83e4b1b
Rule hash
6bb5aaacd2ec
Sources
training
Lesson seeds
20261108, 20261109, 20261110, 20261111, 20261112
Reproduce lesson 1
arcpuzzles generate dafb4f819b93 --count 1 --seed 20261108 --test 1