← c6a422753abe · c6b14e07214c →
c6a453e86480
Read 3 or 4 top-row legend colors; recolor equally many 1-components by minimum-column rank.
component orderinglegend readingrecoloring
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 ((dummy 0)) (let* ((legend (filter (lambda (v) (not (= v 0))) (first g))) (body (subgrid g 1 0 (- (rows g) 1) (- (cols g) 1))) (comps (sort (filter (lambda (obj) (= (obj-color obj) 1)) (objects body 0)) (lambda (a b) (< (obj-c1 a) (obj-c1 b)))))) (for/fold ((out g)) ((obj (in-list comps)) (i (in-naturals))) (for/fold ((acc out)) ((p (in-list (obj-cells obj)))) (set-cell acc (+ 1 (first p)) (second p) (list-ref legend i)))))))
Provenance
- Generator
- generators/c6a453e86480/generator.py
- Notes and decisions
- generators/c6a453e86480/notes.md
- Review label
- reviewed_safe
- Generator SHA-256
- 6a95f82e3d6d87916a4bd854061742a4232f8bb704055f68fb0f4224d4885e31
- Rule hash
- 1971dd8a407b
- Sources
- bank:02cfd661bb19
- Lesson seeds
- 20261108, 20261109, 20261110, 20261111, 20261112
- Reproduce lesson 1
arcpuzzles generate c6a453e86480 --count 1 --seed 20261108 --test 1