← e005c30bc59a · e04777b1f6d7 →

e03758508612

Read the three-colour priority legend at row 0, parse the cyan-wall chambers below it, and fill each chamber with its highest-priority present seed colour. Lessons vary horizontal, vertical, and 2x2 wall layouts, including unequal partitions that defeat midpoint shortcuts.

decision by set membershiplegend priorityregional reasoningwall parsing

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 ((dummy 0)) (define dirs4 (list (list -1 0) (list 1 0) (list 0 -1) (list 0 1))) (define (paint grid cells color) (for/fold ((out grid)) ((p (in-list cells))) (if (in-bounds? (first p) (second p) (rows out) (cols out)) (set-cell out (first p) (second p) color) out))) (define (regions-without-wall-skip grid wall-color skip-row) (let loop-pos ((positions (filter (lambda (p) (>= (first p) skip-row)) (grid-positions grid))) (seen (list)) (acc (list))) (cond ((empty? positions) (reverse acc)) ((or (member? (first positions) seen) (= (at grid (first (first positions)) (second (first positions))) wall-color)) (loop-pos (rest positions) seen acc)) (else (let bfs ((queue (list (first positions))) (seen2 (cons (first positions) seen)) (cells (list))) (if (empty? queue) (loop-pos (rest positions) seen2 (cons (sort cells cell<) acc)) (let* ((cur (first queue)) (nbrs (filter (lambda (p) (and (>= (first p) skip-row) (in-bounds? (first p) (second p) (rows grid) (cols grid)) (not (member? p seen2)) (not (= (at grid (first p) (second p)) wall-color)))) (map (lambda (d) (list (+ (first cur) (first d)) (+ (second cur) (second d)))) dirs4)))) (bfs (append (rest queue) nbrs) (append seen2 nbrs) (cons cur cells))))))))) (let ((priority (filter (lambda (v) (not (member? v (list 0 8)))) (first g)))) (for/fold ((out g)) ((room (in-list (regions-without-wall-skip g 8 1)))) (let ((present (filter (lambda (v) (member? v priority)) (remove-duplicates (map (lambda (p) (at g (first p) (second p))) room))))) (if (empty? present) out (paint out room (first (filter (lambda (v) (member? v present)) priority)))))))))

Provenance

Generator
generators/e03758508612/generator.py
Notes and decisions
generators/e03758508612/notes.md
Review label
reviewed_safe
Generator SHA-256
c398a044b92905869a95f0037479cfbabf8edbba426dd9d8f63d155d65f9cc4e
Rule hash
d93ad16a99ae
Sources
bank:01130745873d
Lesson seeds
20261108, 20261109, 20261110, 20261111, 20261112
Reproduce lesson 1
arcpuzzles generate e03758508612 --count 1 --seed 20261108 --test 1