← 0491e1a49389 · 04c98e3e35bb →
04b1a77fc994
Four to seven monochromatic objects are recolored solely by the number of grid borders touched: 0=blue(1), 1=red(2), 2=green(3), 3+=yellow(4).
classificationobjectsame_size
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 (border-touch-count obj h w) (+ (if (any? (lambda (p) (= (first p) 0)) (obj-cells obj)) 1 0) (if (any? (lambda (p) (= (first p) (- h 1))) (obj-cells obj)) 1 0) (if (any? (lambda (p) (= (second p) 0)) (obj-cells obj)) 1 0) (if (any? (lambda (p) (= (second p) (- w 1))) (obj-cells obj)) 1 0))) (define (rank-touch-color n) (cond ((= n 0) 1) ((= n 1) 2) ((= n 2) 3) (else 4))) (for/fold ((out (empty-grid (rows g) (cols g) 0))) ((obj (in-list (objects g 0)))) (paint-cells out (obj-cells obj) (rank-touch-color (border-touch-count obj (rows g) (cols g)))))))
Provenance
- Generator
- generators/04b1a77fc994/generator.py
- Notes and decisions
- generators/04b1a77fc994/notes.md
- Review label
- reviewed_safe
- Generator SHA-256
- 3efd2e936903b567ea7b210c490a4b8ef6778108e51ebabff4cfe9f19c4ba441
- Rule hash
- 20e8206868a6
- Sources
- bank:ece0cc5101a3
- Lesson seeds
- 20261108, 20261109, 20261110, 20261111, 20261112
- Reproduce lesson 1
arcpuzzles generate 04b1a77fc994 --count 1 --seed 20261108 --test 1