← f13d23b71bd4 · f16508733f0a →
f151fbd31cb2
A singleton shape key (1=L, 4=plus) chooses one of two GREEN object families, while a singleton color key (2/6/8) gives the replacement color. Recolor every object of the selected family and preserve the other family. A cyclic three-profile curriculum includes selected-family minority counterexamples to the canonical majority-family shortcut.
conditional recolorshape classificationtwo control signals
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 (e8b-list< a b) (cond ((empty? a) #f) ((< (first a) (first b)) #t) ((> (first a) (first b)) #f) (else (e8b-list< (rest a) (rest b))))) (define (v1-normalized-offsets obj) (let* ((bb (obj-bbox obj)) (r0 (first bb)) (c0 (second bb))) (sort (map (lambda (p) (list (- (first p) r0) (- (second p) c0))) (obj-cells obj)) e8b-list<))) (define (v3-l-triomino? obj) (let ((bb (obj-bbox obj))) (and (= (obj-size obj) 3) (= (- (third bb) (first bb)) 1) (= (- (fourth bb) (second bb)) 1)))) (define (v3-plus5? obj) (equal? (v1-normalized-offsets obj) (list (list 0 1) (list 1 0) (list 1 1) (list 1 2) (list 2 1)))) (define (v3-first-color-by-count grid candidates) (let loop ((remaining candidates) (hit #f)) (if (empty? remaining) hit (let ((color (first remaining))) (loop (rest remaining) (if (= (length (find-color grid color)) 1) color hit)))))) (let ((color-key (v3-first-color-by-count g (list 2 6 8))) (shape-key (v3-first-color-by-count g (list 1 4)))) (for/fold ((out g)) ((obj (in-list (filter (lambda (obj) (= (obj-color obj) 3)) (objects g 0))))) (let ((family (cond ((v3-l-triomino? obj) 'L) ((v3-plus5? obj) 'PLUS) (else 'OTHER)))) (if (or (and (= shape-key 1) (equal? family 'L)) (and (= shape-key 4) (equal? family 'PLUS))) (paint-cells out (obj-cells obj) color-key) out))))))
Provenance
- Generator
- generators/f151fbd31cb2/generator.py
- Notes and decisions
- generators/f151fbd31cb2/notes.md
- Review label
- reviewed_safe
- Generator SHA-256
- 92adf9c50a8f7c0346751867e759b5fbb4ca6f7742e71ac64b21a2d50cf8751e
- Rule hash
- 33294c3c6e8b
- Sources
- bank:05f1b1c78907
- Lesson seeds
- 20261108, 20261109, 20261110, 20261111, 20261112
- Reproduce lesson 1
arcpuzzles generate f151fbd31cb2 --count 1 --seed 20261108 --test 1