← a286b2610efc · a287e878de99 →
a286d31d63fb
A 0-background grid contains distinctly colored 4-connected components. For each component, count its cells in every occupied row. Components with a constant per-row count are recolored to cyan(8); components whose row counts vary keep their source color. Generated lessons contain both classes and at least one constant-row-profile shape that is not a solid rectangle.
component filteringrow-profile regularitysame-size recolor
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 (row-profile obj) (for/list ((r (in-range (obj-r1 obj) (+ (obj-r2 obj) 1)))) (count-where (lambda (p) (= (first p) r)) (obj-cells obj)))) (define (constant-row-profile obj) (let ((rp (row-profile obj))) (all? (lambda (x) (= x (first rp))) rp))) (for/fold ((out g)) ((obj (in-list (objects g 0)))) (if (constant-row-profile obj) (paint-cells out (obj-cells obj) 8) out))))
Provenance
- Generator
- generators/a286d31d63fb/generator.py
- Notes and decisions
- generators/a286d31d63fb/notes.md
- Review label
- reviewed_safe
- Generator SHA-256
- 4226cd30d3bcb427a8b39aa49b368cc6c6deffc3cc5ce4737ea28128b9ec82a2
- Rule hash
- bc2002d0a0d4
- Sources
- bank:fe9bb13a9b18
- Lesson seeds
- 20261108, 20261109, 20261110, 20261111, 20261112
- Reproduce lesson 1
arcpuzzles generate a286d31d63fb --count 1 --seed 20261108 --test 1