← 42a152269589 · 42f19ef6d600 →
42a28f889145
A 0-background grid contains exactly two separated 4-connected blobs in distinct nonzero colors. Sort the objects left-to-right and exchange their colors while preserving every occupied cell. Shapes may match or differ; both relative color orders are generated.
color substitutioncomponent extractionleft-right ordering
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!
;; SWAP the colors of the two objects (left object <-> right object).
(let* ((comps (sort (objects g 0) (lambda (a b) (< (obj-c1 a) (obj-c1 b)))))
(a (first comps))
(b (second comps)))
(paint-cells (paint-cells g (obj-cells a) (obj-color b))
(obj-cells b) (obj-color a))))Provenance
- Generator
- generators/42a28f889145/generator.py
- Notes and decisions
- generators/42a28f889145/notes.md
- Review label
- reviewed_safe
- Generator SHA-256
- b2cadd67ac405bbcf3a5ffba4fda02d6c483c1a028d760830fa74c91f38ac5a6
- Rule hash
- 57cc84264d9e
- Sources
- bank:76c10b1ad4b3
- Lesson seeds
- 20261108, 20261109, 20261110, 20261111, 20261112
- Reproduce lesson 1
arcpuzzles generate 42a28f889145 --count 1 --seed 20261108 --test 1